org.apache.commons.mail.Email.isStartTLSEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(143)

本文整理了Java中org.apache.commons.mail.Email.isStartTLSEnabled()方法的一些代码示例,展示了Email.isStartTLSEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Email.isStartTLSEnabled()方法的具体详情如下:
包路径:org.apache.commons.mail.Email
类名称:Email
方法名:isStartTLSEnabled

Email.isStartTLSEnabled介绍

[英]Gets whether the client is configured to try to enable STARTTLS.
[中]获取客户端是否配置为尝试启用STARTTLS。

代码示例

代码示例来源:origin: camunda/camunda-bpm-platform

  1. /**
  2. * Gets whether the client is configured to try to enable STARTTLS.
  3. * See EMAIL-105 for reason of deprecation.
  4. *
  5. * @deprecated since 1.3, use isStartTLSEnabled() instead
  6. * @return true if using STARTTLS for authentication, false otherwise
  7. * @since 1.1
  8. */
  9. @Deprecated
  10. public boolean isTLS()
  11. {
  12. return isStartTLSEnabled();
  13. }

代码示例来源:origin: camunda/camunda-bpm-platform

  1. isStartTLSEnabled() ? "true" : "false");
  2. properties.setProperty(EmailConstants.MAIL_TRANSPORT_STARTTLS_REQUIRED,
  3. isStartTLSRequired() ? "true" : "false");
  4. if ((isSSLOnConnect() || isStartTLSEnabled()) && isSSLCheckServerIdentity())

代码示例来源:origin: org.apache.commons/commons-email

  1. /**
  2. * Gets whether the client is configured to try to enable STARTTLS.
  3. * See EMAIL-105 for reason of deprecation.
  4. *
  5. * @deprecated since 1.3, use isStartTLSEnabled() instead
  6. * @return true if using STARTTLS for authentication, false otherwise
  7. * @since 1.1
  8. */
  9. @Deprecated
  10. public boolean isTLS()
  11. {
  12. return isStartTLSEnabled();
  13. }

代码示例来源:origin: org.apache.commons/commons-email

  1. isStartTLSEnabled() ? "true" : "false");
  2. properties.setProperty(EmailConstants.MAIL_TRANSPORT_STARTTLS_REQUIRED,
  3. isStartTLSRequired() ? "true" : "false");
  4. if ((isSSLOnConnect() || isStartTLSEnabled()) && isSSLCheckServerIdentity())

代码示例来源:origin: stackoverflow.com

  1. email.isStartTLSEnabled();
  2. email.setHostName("");
  3. email.setSmtpPort(26);

相关文章