Class FastSaslClientFactory
java.lang.Object
org.apache.drill.exec.rpc.security.FastSaslClientFactory
- All Implemented Interfaces:
SaslClientFactory
Sasl.createSaslClient(java.lang.String[], java.lang.String, java.lang.String, java.lang.String, java.util.Map<java.lang.String, ?>, javax.security.auth.callback.CallbackHandler)
is known to be slow. This class caches available client factories.-
Method Summary
Modifier and TypeMethodDescriptioncreateSaslClient
(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) static FastSaslClientFactory
String[]
getMechanismNames
(Map<String, ?> props)
-
Method Details
-
getInstance
-
createSaslClient
public SaslClient createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) throws SaslException- Specified by:
createSaslClient
in interfaceSaslClientFactory
- Throws:
SaslException
-
getMechanismNames
- Specified by:
getMechanismNames
in interfaceSaslClientFactory
-