Package com.atlassian.confluence.mail
Class ConfluenceSmtpMailServer
java.lang.Object
com.atlassian.mail.server.AbstractMailServer
com.atlassian.mail.server.impl.SMTPMailServerImpl
com.atlassian.confluence.jmx.JmxSMTPMailServer
com.atlassian.confluence.mail.ConfluenceSmtpMailServer
- All Implemented Interfaces:
- OAuth2MailServer,- com.atlassian.mail.server.auth.AuthenticationContextAware,- com.atlassian.mail.server.MailServer,- com.atlassian.mail.server.SMTPMailServer,- Serializable
A Confluence/Atlassian-flavoured SMTP server that stores authorization and username
 information for OAuth2
- Since:
- 9.4
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class com.atlassian.mail.server.impl.SMTPMailServerImplcom.atlassian.mail.server.impl.SMTPMailServerImpl.Builder<T extends com.atlassian.mail.server.impl.SMTPMailServerImpl.Builder<T>>
- 
Field SummaryFields inherited from class com.atlassian.mail.server.impl.SMTPMailServerImplDEFAULT_TRANSPORT_CACHE_TTL, TRANSPORT_CACHE_TTL_PROPERTYFields inherited from class com.atlassian.mail.server.AbstractMailServerisAuthenticating, logFields inherited from interface com.atlassian.mail.server.SMTPMailServerDEFAULT_SMTP_PORT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription@Nullable AuthorizationReturns the currently registeredAuthorizationif ones configured, otherwise null.voidsetAuthorization(@Nullable Authorization authorization) Register anAuthorizationto use when retrieving email from thisMailServervoidsetUsername(String username) Methods inherited from class com.atlassian.confluence.jmx.JmxSMTPMailServergetEmailsAttempted, getEmailsSent, getFromName, getLastSuccessful, quietSend, send, setFromNameMethods inherited from class com.atlassian.mail.server.impl.SMTPMailServerImplequals, getDefaultFrom, getDefaultReplyTo, getJndiLocation, getJndiSession, getPrefix, getSession, getTransportCacheTtl, getType, hashCode, isRemovePrecedence, isSessionServer, isTlsHostnameCheckRequired, propertyChanged, sendMimeMessage, sendWithMessageId, setDefaultFrom, setDefaultReplyTo, setJndiLocation, setPrefix, setRemovePrecedence, setSessionServer, setTlsHostnameCheckRequired, toStringMethods inherited from class com.atlassian.mail.server.AbstractMailServergetAuthenticationContext, getAuthenticator, getConnectionTimeout, getDebug, getDebugStream, getDescription, getHostname, getId, getMailProtocol, getMoreDebugInfoAboutCreatedSession, getName, getPassword, getPort, getProperties, getSessionFromServerManager, getSessionFromServerManagerInternal, getSocksHost, getSocksPort, getTimeout, isTlsRequired, loadSystemProperties, setAuthenticationContext, setConnectionTimeout, setDebug, setDebugStream, setDescription, setHostname, setId, setLogger, setMailProtocol, setName, setPassword, setPort, setProperties, setSocksHost, setSocksPort, setTimeout, setTlsRequired, smartConnectMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.mail.server.MailServergetDescription, getHostname, getId, getMailProtocol, getName, getPassword, getPort, getProperties, getSocksHost, getSocksPort, getTimeout, setDebugStream, setDescription, setHostname, setId, setLogger, setMailProtocol, setName, setPassword, setPort, setProperties, setSocksHost, setSocksPort, setTimeoutMethods inherited from interface com.atlassian.confluence.mail.OAuth2MailServerisBasicAuthMethods inherited from interface com.atlassian.mail.server.SMTPMailServergetDebug, getDebugStream, isTlsRequired, isTransportCachingEnabled, setDebug, setTlsRequired
- 
Constructor Details- 
ConfluenceSmtpMailServerpublic ConfluenceSmtpMailServer()
- 
ConfluenceSmtpMailServer
 
- 
- 
Method Details- 
getAuthorizationDescription copied from interface:OAuth2MailServerReturns the currently registeredAuthorizationif ones configured, otherwise null.- Specified by:
- getAuthorizationin interface- OAuth2MailServer
- Returns:
- Authorization
 
- 
setAuthorizationDescription copied from interface:OAuth2MailServerRegister anAuthorizationto use when retrieving email from thisMailServer- Specified by:
- setAuthorizationin interface- OAuth2MailServer
- Parameters:
- authorization- An- Authorizationmethodology e.g. OAuth 2.0
 
- 
getUsername- Specified by:
- getUsernamein interface- com.atlassian.mail.server.MailServer
- Overrides:
- getUsernamein class- com.atlassian.mail.server.AbstractMailServer
 
- 
setUsername- Specified by:
- setUsernamein interface- com.atlassian.mail.server.MailServer
- Overrides:
- setUsernamein class- com.atlassian.mail.server.AbstractMailServer
 
 
-