public class

MailHostConfiguration

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

Class Overview

Class containing the mail host configuration.

Summary

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()
[Expand]
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 ()

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

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.