Class MailHostConfiguration

java.lang.Object
com.atlassian.bitbucket.mail.MailHostConfiguration

public class MailHostConfiguration extends Object
Class containing the mail host configuration.
  • Method Details

    • getHostname

      public String getHostname()
    • getPassword

      public String getPassword()
    • getPort

      public Integer getPort()
    • getProtocol

      @Nonnull public MailProtocol getProtocol()
    • getUsername

      public String getUsername()
    • isRequireStartTls

      public boolean isRequireStartTls()
      Returns:
      true if the product should always use the STARTTLS extension when connecting to SMTP (note: not SMPTS) mail servers and fail if the server does not support it (ensuring mail is always sent over SSL/TLS and never in plaintext).
      See Also:
    • isUseStartTls

      public boolean isUseStartTls()
      Returns:
      true if the product will attempt to use the STARTTLS extension if the SMTP (note: not SMTPS) server on the other end supports it. If true and the server does not support it mail will be transmitted in plaintext. If false mail will always be transmitted in plaintext.
      See Also:
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object