Examples of CSmtpConfiguration


Examples of org.sonatype.nexus.configuration.model.v2_7_0.CSmtpConfiguration

   *
   * @param conf the new model (2.7.0)
   * @see <a href="https://issues.sonatype.org/browse/NEXUS-4997">NEXUS-4997</a>
   */
  protected void updateSmtpSslTlsSettings(final Configuration conf) {
    final CSmtpConfiguration smtp = conf.getSmtpConfiguration();
    if (smtp != null) {
      if (smtp.isSslEnabled() && smtp.isTlsEnabled()) {
        smtp.setSslEnabled(true);
        smtp.setTlsEnabled(false);
        log.warn(
            "SMTP related configuration change happened: both SSL and TLS was set, updated to use SSL only, assuming that SMTP server port is set to a port where remote SMTP server accepts SSL connections.");
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.