Interface UserAuthenticator
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
HtpasswdFileUserAuthenticator,Pam4jUserAuthenticator,PamUserAuthenticator,VaultUserAuthenticator
Interface to provide various username/password based implementations for authentication.
-
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticate(String user, String password) Authenticate the given user and password combination.voidclose()Close the authenticator.voidsetup(DrillConfig drillConfig) Setup for authenticating user credentials.
-
Method Details
-
setup
Setup for authenticating user credentials.- Throws:
DrillbitStartupException
-
authenticate
Authenticate the given user and password combination.- Parameters:
user-password-- Throws:
UserAuthenticationException- if authentication fails for given user and password.
-
close
Close the authenticator. Used to release resources. Ex. LDAP authenticator opens connections to LDAP server, such connections resources are released in a safe manner as part of close.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-