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 TypeMethodDescriptionvoid
authenticate
(String user, String password) Authenticate the given user and password combination.void
close()
Close the authenticator.void
setup
(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-