Package com.atlassian.crowd.util.mail
Class SMTPServer
java.lang.Object
com.atlassian.crowd.util.mail.SMTPServer
POJO holding SMTP server config.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
ConstructorDescriptionDeprecated.SMTPServer
(int port, String prefix, javax.mail.internet.InternetAddress from, String password, String username, String host, boolean useSSL) Deprecated.UseSMTPServer.Builder
instead.SMTPServer
(String jndiLocation, javax.mail.internet.InternetAddress from, String prefix) Deprecated.UseSMTPServer.Builder
instead. -
Method Summary
Modifier and TypeMethodDescriptionstatic SMTPServer.Builder
builder()
static SMTPServer.Builder
builder
(SMTPServer smtpServer) boolean
javax.mail.internet.InternetAddress
getFrom()
getHost()
getId()
int
getPort()
int
boolean
int
hashCode()
boolean
boolean
-
Field Details
-
DEFAULT_MAIL_PORT
public static final int DEFAULT_MAIL_PORT- See Also:
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUT- See Also:
-
-
Constructor Details
-
SMTPServer
@Deprecated public SMTPServer(String jndiLocation, javax.mail.internet.InternetAddress from, String prefix) Deprecated.UseSMTPServer.Builder
instead. Since 3.2 -
SMTPServer
@Deprecated public SMTPServer(int port, String prefix, javax.mail.internet.InternetAddress from, String password, String username, String host, boolean useSSL) Deprecated.UseSMTPServer.Builder
instead. Since 3.2 -
SMTPServer
Deprecated.UseSMTPServer.Builder
instead. Since 3.2
-
-
Method Details
-
builder
-
builder
-
getId
-
getHost
-
getUsername
-
getPassword
-
getOauth2ConfigurationId
-
getUseSSL
public boolean getUseSSL() -
getFrom
public javax.mail.internet.InternetAddress getFrom() -
getPrefix
-
getPort
public int getPort() -
getJndiLocation
-
isJndiMailActive
public boolean isJndiMailActive() -
isStartTLS
public boolean isStartTLS() -
getTimeout
public int getTimeout() -
equals
-
hashCode
public int hashCode()
-
SMTPServer.Builder
instead.