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) voiddoAuth(java.lang.String host, java.lang.String authzid, java.lang.String user, java.lang.String passwd)(package private) java.lang.StringgetInitialResponse(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.IOExceptionDescription copied from class:SMTPTransport.AuthenticatorProvide 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:
getInitialResponsein classSMTPTransport.Authenticator- Throws:
MessagingExceptionjava.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:
doAuthin classSMTPTransport.Authenticator- Throws:
MessagingExceptionjava.io.IOException
-
-