Package com.sun.mail.auth
Class OAuth2SaslClient
java.lang.Object
com.sun.mail.auth.OAuth2SaslClient
- All Implemented Interfaces:
SaslClient
Jakarta Mail SASL client for OAUTH2.
- Author:
- Bill Shannon
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
byte[]
evaluateChallenge
(byte[] challenge) getNegotiatedProperty
(String propName) boolean
boolean
byte[]
unwrap
(byte[] incoming, int offset, int len) byte[]
wrap
(byte[] outgoing, int offset, int len)
-
Constructor Details
-
OAuth2SaslClient
-
-
Method Details
-
getMechanismName
- Specified by:
getMechanismName
in interfaceSaslClient
-
hasInitialResponse
public boolean hasInitialResponse()- Specified by:
hasInitialResponse
in interfaceSaslClient
-
evaluateChallenge
- Specified by:
evaluateChallenge
in interfaceSaslClient
- Throws:
SaslException
-
isComplete
public boolean isComplete()- Specified by:
isComplete
in interfaceSaslClient
-
unwrap
- Specified by:
unwrap
in interfaceSaslClient
- Throws:
SaslException
-
wrap
- Specified by:
wrap
in interfaceSaslClient
- Throws:
SaslException
-
getNegotiatedProperty
- Specified by:
getNegotiatedProperty
in interfaceSaslClient
-
dispose
- Specified by:
dispose
in interfaceSaslClient
- Throws:
SaslException
-