Class DefaultIncomingConnectionVerifier
java.lang.Object
com.atlassian.confluence.internal.diagnostics.ipd.mail.incoming.DefaultIncomingConnectionVerifier
- All Implemented Interfaces:
ConnectionVerifier
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.confluence.internal.diagnostics.ipd.mail.ConnectionVerifier
ConnectionVerifier.AuthenticationType
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultIncomingConnectionVerifier
(OAuth2Service oAuth2Service, Function<Properties, javax.mail.Session> sessionFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
verifyConnection
(com.atlassian.mail.server.MailServer mailServer) Verifies connection to a mail server.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.internal.diagnostics.ipd.mail.ConnectionVerifier
applyTimeout, getAuthenticationType, optionallyOverrideTimeout
-
Constructor Details
-
DefaultIncomingConnectionVerifier
public DefaultIncomingConnectionVerifier(OAuth2Service oAuth2Service, Function<Properties, javax.mail.Session> sessionFactory)
-
-
Method Details
-
verifyConnection
Description copied from interface:ConnectionVerifier
Verifies connection to a mail server.- Specified by:
verifyConnection
in interfaceConnectionVerifier
- Parameters:
mailServer
- mail server to verify connection to- Throws:
Exception
- if connection validation fails
-