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_PROPERTY
Fields inherited from class com.atlassian.mail.server.AbstractMailServer
isAuthenticating, log
Fields inherited from interface com.atlassian.mail.server.SMTPMailServer
DEFAULT_SMTP_PORT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Authorization
Returns the currently registeredAuthorization
if ones configured, otherwise null.void
setAuthorization
(@Nullable Authorization authorization) Register anAuthorization
to use when retrieving email from thisMailServer
void
setUsername
(String username) Methods inherited from class com.atlassian.confluence.jmx.JmxSMTPMailServer
getEmailsAttempted, getEmailsSent, getFromName, getLastSuccessful, quietSend, send, setFromName
Methods 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, toString
Methods 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, smartConnect
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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, setTimeout
Methods inherited from interface com.atlassian.confluence.mail.OAuth2MailServer
isBasicAuth
Methods 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:OAuth2MailServer
Returns the currently registeredAuthorization
if ones configured, otherwise null.- Specified by:
getAuthorization
in interfaceOAuth2MailServer
- Returns:
Authorization
-
setAuthorization
Description copied from interface:OAuth2MailServer
Register anAuthorization
to use when retrieving email from thisMailServer
- Specified by:
setAuthorization
in interfaceOAuth2MailServer
- Parameters:
authorization
- AnAuthorization
methodology e.g. OAuth 2.0
-
getUsername
- Specified by:
getUsername
in interfacecom.atlassian.mail.server.MailServer
- Overrides:
getUsername
in classcom.atlassian.mail.server.AbstractMailServer
-
setUsername
- Specified by:
setUsername
in interfacecom.atlassian.mail.server.MailServer
- Overrides:
setUsername
in classcom.atlassian.mail.server.AbstractMailServer
-