Package com.sun.mail.auth
Class OAuth2SaslClientFactory
- java.lang.Object
-
- com.sun.mail.auth.OAuth2SaslClientFactory
-
- All Implemented Interfaces:
SaslClientFactory
public class OAuth2SaslClientFactory extends Object implements SaslClientFactory
Jakarta Mail SASL client factory for OAUTH2.- Author:
- Bill Shannon
-
-
Constructor Summary
Constructors Constructor Description OAuth2SaslClientFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SaslClientcreateSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)String[]getMechanismNames(Map<String,?> props)static voidinit()Initialize this OAUTH2 provider, but only if there isn't one already.
-
-
-
Method Detail
-
createSaslClient
public SaslClient createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
- Specified by:
createSaslClientin interfaceSaslClientFactory- Throws:
SaslException
-
getMechanismNames
public String[] getMechanismNames(Map<String,?> props)
- Specified by:
getMechanismNamesin interfaceSaslClientFactory
-
init
public static void init()
Initialize this OAUTH2 provider, but only if there isn't one already. If we're not allowed to add this provider, just give up silently.
-
-