Package com.atlassian.confluence.mail
Interface OAuth2MailServer
- All Known Subinterfaces:
InboundMailServer
- All Known Implementing Classes:
ConfluenceImapMailServer
,ConfluencePopMailServer
,ConfluenceSmtpMailServer
public interface OAuth2MailServer
Defines the contract for a mail server that supports OAuth2 authentication.
- Since:
- 9.5
-
Method Summary
Modifier and TypeMethodDescription@Nullable Authorization
Returns the currently registeredAuthorization
if ones configured, otherwise null.default boolean
Returns whether thisMailServer
is configured to use BasicAuth or not.void
setAuthorization
(@Nullable Authorization authorization) Register anAuthorization
to use when retrieving email from thisMailServer
-
Method Details
-
getAuthorization
@Nullable Authorization getAuthorization()Returns the currently registeredAuthorization
if ones configured, otherwise null.- Returns:
Authorization
-
setAuthorization
Register anAuthorization
to use when retrieving email from thisMailServer
- Parameters:
authorization
- AnAuthorization
methodology e.g. OAuth 2.0
-
isBasicAuth
default boolean isBasicAuth()Returns whether thisMailServer
is configured to use BasicAuth or not.- Returns:
- see description
-