Class FastSaslServerFactory
java.lang.Object
org.apache.drill.exec.rpc.security.FastSaslServerFactory
- All Implemented Interfaces:
SaslServerFactory
Sasl.createSaslServer(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 server factories.
This is a modified version of Apache Hadoop's implementation.-
Method Summary
Modifier and TypeMethodDescriptioncreateSaslServer
(String mechanism, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) static FastSaslServerFactory
String[]
getMechanismNames
(Map<String, ?> props)
-
Method Details
-
getInstance
-
createSaslServer
public SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) throws SaslException- Specified by:
createSaslServer
in interfaceSaslServerFactory
- Throws:
SaslException
-
getMechanismNames
- Specified by:
getMechanismNames
in interfaceSaslServerFactory
-