public final class ZKAuthenticator extends Object implements Authenticator
| Constructor and Description |
|---|
ZKAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticateUser(String principal,
AuthenticationToken token) |
void |
changePassword(String principal,
AuthenticationToken token) |
void |
createUser(String principal,
AuthenticationToken token)
Creates a user with no initial permissions whatsoever
|
void |
dropUser(String user) |
static Authenticator |
getInstance() |
Set<Class<? extends AuthenticationToken>> |
getSupportedTokenTypes() |
void |
initialize(String instanceId,
boolean initialize) |
void |
initializeSecurity(TCredentials credentials,
String principal,
byte[] token) |
Set<String> |
listUsers() |
boolean |
userExists(String user)
Checks if a user exists
|
boolean |
validSecurityHandlers(Authorizor auth,
PermissionHandler pm) |
boolean |
validTokenClass(String tokenClass)
Returns true if the given token is appropriate for this Authenticator
|
public static Authenticator getInstance()
public void initialize(String instanceId, boolean initialize)
initialize in interface Authenticatorpublic void initializeSecurity(TCredentials credentials, String principal, byte[] token) throws AccumuloSecurityException
initializeSecurity in interface AuthenticatorAccumuloSecurityExceptionpublic Set<String> listUsers()
listUsers in interface Authenticatorpublic void createUser(String principal, AuthenticationToken token) throws AccumuloSecurityException
AuthenticatorcreateUser in interface AuthenticatorAccumuloSecurityExceptionpublic void dropUser(String user) throws AccumuloSecurityException
dropUser in interface AuthenticatorAccumuloSecurityExceptionpublic void changePassword(String principal, AuthenticationToken token) throws AccumuloSecurityException
changePassword in interface AuthenticatorAccumuloSecurityExceptionpublic boolean userExists(String user)
AuthenticatoruserExists in interface Authenticatorpublic boolean validSecurityHandlers(Authorizor auth, PermissionHandler pm)
validSecurityHandlers in interface Authenticatorpublic boolean authenticateUser(String principal, AuthenticationToken token) throws AccumuloSecurityException
authenticateUser in interface AuthenticatorAccumuloSecurityExceptionpublic Set<Class<? extends AuthenticationToken>> getSupportedTokenTypes()
getSupportedTokenTypes in interface Authenticatorpublic boolean validTokenClass(String tokenClass)
AuthenticatorvalidTokenClass in interface AuthenticatorCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.