public class


extends Object
   ↳ com.atlassian.bitbucket.mail.MailHostConfiguration

Class Overview

Class containing the mail host configuration.


Nested Classes
class MailHostConfiguration.Builder  
Public Methods
boolean equals(Object o)
String getHostname()
String getPassword()
Integer getPort()
@Nonnull MailProtocol getProtocol()
String getUsername()
int hashCode()
boolean isRequireStartTls()
boolean isUseStartTls()
Inherited Methods
From class java.lang.Object

Public Methods

public boolean equals (Object o)

public String getHostname ()

public String getPassword ()

public Integer getPort ()

@Nonnull public MailProtocol getProtocol ()

public String getUsername ()

public int hashCode ()

public boolean isRequireStartTls ()

  • 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).

public boolean isUseStartTls ()

  • 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.