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
UserAuthenticator
setup
in interface UserAuthenticator
DrillbitStartupException
public void authenticate(String user, String password) throws UserAuthenticationException
UserAuthenticator
authenticate
in interface UserAuthenticator
UserAuthenticationException
- if authentication fails for given user and password.public void close() throws IOException
UserAuthenticator
close
in interface Closeable
close
in interface AutoCloseable
close
in interface UserAuthenticator
IOException
Copyright © 1970 The Apache Software Foundation. All rights reserved.