public class InsecureAuthenticator extends Object implements Authenticator
| Constructor and Description |
|---|
InsecureAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticateUser(String principal,
AuthenticationToken token) |
void |
changePassword(String user,
AuthenticationToken token) |
void |
createUser(String principal,
AuthenticationToken token)
Creates a user with no initial permissions whatsoever
|
void |
dropUser(String user) |
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 void initialize(String instanceId, boolean initialize)
initialize in interface Authenticatorpublic boolean validSecurityHandlers(Authorizor auth, PermissionHandler pm)
validSecurityHandlers in interface Authenticatorpublic void initializeSecurity(TCredentials credentials, String principal, byte[] token) throws AccumuloSecurityException
initializeSecurity in interface AuthenticatorAccumuloSecurityExceptionpublic boolean authenticateUser(String principal, AuthenticationToken token)
authenticateUser in interface Authenticatorpublic Set<String> listUsers() throws AccumuloSecurityException
listUsers in interface AuthenticatorAccumuloSecurityExceptionpublic 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 user, AuthenticationToken token) throws AccumuloSecurityException
changePassword in interface AuthenticatorAccumuloSecurityExceptionpublic boolean userExists(String user)
AuthenticatoruserExists in interface Authenticatorpublic boolean validTokenClass(String tokenClass)
AuthenticatorvalidTokenClass in interface Authenticatorpublic Set<Class<? extends AuthenticationToken>> getSupportedTokenTypes()
getSupportedTokenTypes in interface AuthenticatorCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.