public class Pam4jUserAuthenticator extends Object implements UserAuthenticator
UserAuthenticator based on Pluggable Authentication
Module (PAM) configuration. Configure the PAM profiles using "drill.exec.security.user.auth.pam_profiles" BOOT
option. Ex. value [ "login", "sudo" ] (value is an array of strings).| Constructor and Description |
|---|
Pam4jUserAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
void |
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.
|
public void setup(DrillConfig drillConfig) throws DrillbitStartupException
UserAuthenticatorsetup in interface UserAuthenticatorDrillbitStartupExceptionpublic void authenticate(String user, String password) throws UserAuthenticationException
UserAuthenticatorauthenticate in interface UserAuthenticatorUserAuthenticationException - if authentication fails for given user and password.public void close()
throws IOException
UserAuthenticatorclose in interface Closeableclose in interface AutoCloseableclose in interface UserAuthenticatorIOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.