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 Summary
Nested classes/interfaces inherited from class com.atlassian.mail.server.impl.SMTPMailServerImpl
com.atlassian.mail.server.impl.SMTPMailServerImpl.Builder<T extends com.atlassian.mail.server.impl.SMTPMailServerImpl.Builder<T>> -
Field Summary
Fields inherited from class com.atlassian.mail.server.impl.SMTPMailServerImpl
DEFAULT_TRANSPORT_CACHE_TTL, TRANSPORT_CACHE_TTL_PROPERTYFields inherited from class com.atlassian.mail.server.AbstractMailServer
isAuthenticating, logFields inherited from interface com.atlassian.mail.server.SMTPMailServer
DEFAULT_SMTP_PORT -
Constructor Summary
Constructors -
Method Summary
Modifier 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.JmxSMTPMailServer
getEmailsAttempted, getEmailsSent, getFromName, getLastSuccessful, quietSend, send, setFromNameMethods inherited from class com.atlassian.mail.server.impl.SMTPMailServerImpl
equals, 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.AbstractMailServer
getAuthenticationContext, 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.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.mail.server.MailServer
getDescription, 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.OAuth2MailServer
isBasicAuthMethods inherited from interface com.atlassian.mail.server.SMTPMailServer
getDebug, getDebugStream, isTlsRequired, isTransportCachingEnabled, setDebug, setTlsRequired
-
Constructor Details
-
ConfluenceSmtpMailServer
public ConfluenceSmtpMailServer() -
ConfluenceSmtpMailServer
-
-
Method Details
-
getAuthorization
Description copied from interface:OAuth2MailServerReturns the currently registeredAuthorizationif ones configured, otherwise null.- Specified by:
getAuthorizationin interfaceOAuth2MailServer- Returns:
Authorization
-
setAuthorization
Description copied from interface:OAuth2MailServerRegister anAuthorizationto use when retrieving email from thisMailServer- Specified by:
setAuthorizationin interfaceOAuth2MailServer- Parameters:
authorization- AnAuthorizationmethodology e.g. OAuth 2.0
-
getUsername
- Specified by:
getUsernamein interfacecom.atlassian.mail.server.MailServer- Overrides:
getUsernamein classcom.atlassian.mail.server.AbstractMailServer
-
setUsername
- Specified by:
setUsernamein interfacecom.atlassian.mail.server.MailServer- Overrides:
setUsernamein classcom.atlassian.mail.server.AbstractMailServer
-