Class UserAuthenticatorFactory
java.lang.Object
org.apache.drill.exec.rpc.user.security.UserAuthenticatorFactory
Factory class which provides
UserAuthenticator
implementation based on the BOOT options.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic UserAuthenticator
createAuthenticator
(DrillConfig config, ScanResult scan) Create aUserAuthenticator
implementation based on BOOT settings in given drillConfig.
-
Constructor Details
-
UserAuthenticatorFactory
public UserAuthenticatorFactory()
-
-
Method Details
-
createAuthenticator
public static UserAuthenticator createAuthenticator(DrillConfig config, ScanResult scan) throws DrillbitStartupException Create aUserAuthenticator
implementation based on BOOT settings in given drillConfig.- Parameters:
config
- DrillConfig containing BOOT options.- Returns:
- Initialized
UserAuthenticator
implementation instance. It is responsibility of the caller to close the authenticator when no longer needed. - Throws:
DrillbitStartupException
- when no implementation found for given BOOT options.
-