Package com.sun.mail.smtp
Class SMTPTransport.OAuth2Authenticator
- java.lang.Object
-
- com.sun.mail.smtp.SMTPTransport.Authenticator
-
- com.sun.mail.smtp.SMTPTransport.OAuth2Authenticator
-
- Enclosing class:
- SMTPTransport
private class SMTPTransport.OAuth2Authenticator extends SMTPTransport.Authenticator
Perform the authentication handshake for XOAUTH2 authentication.
-
-
Field Summary
-
Fields inherited from class com.sun.mail.smtp.SMTPTransport.Authenticator
resp
-
-
Constructor Summary
Constructors Constructor Description OAuth2Authenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
doAuth(java.lang.String host, java.lang.String authzid, java.lang.String user, java.lang.String passwd)
(package private) java.lang.String
getInitialResponse(java.lang.String host, java.lang.String authzid, java.lang.String user, java.lang.String passwd)
Provide the initial response to use in the AUTH command, or null if not supported.-
Methods inherited from class com.sun.mail.smtp.SMTPTransport.Authenticator
authenticate, enabled, getMechanism
-
-
-
-
Method Detail
-
getInitialResponse
java.lang.String getInitialResponse(java.lang.String host, java.lang.String authzid, java.lang.String user, java.lang.String passwd) throws MessagingException, java.io.IOException
Description copied from class:SMTPTransport.Authenticator
Provide the initial response to use in the AUTH command, or null if not supported. Subclasses that support the initial response capability will override this method.- Overrides:
getInitialResponse
in classSMTPTransport.Authenticator
- Throws:
MessagingException
java.io.IOException
-
doAuth
void doAuth(java.lang.String host, java.lang.String authzid, java.lang.String user, java.lang.String passwd) throws MessagingException, java.io.IOException
- Specified by:
doAuth
in classSMTPTransport.Authenticator
- Throws:
MessagingException
java.io.IOException
-
-