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 Authenticator
public boolean validSecurityHandlers(Authorizor auth, PermissionHandler pm)
validSecurityHandlers
in interface Authenticator
public void initializeSecurity(TCredentials credentials, String principal, byte[] token) throws AccumuloSecurityException
initializeSecurity
in interface Authenticator
AccumuloSecurityException
public boolean authenticateUser(String principal, AuthenticationToken token)
authenticateUser
in interface Authenticator
public Set<String> listUsers() throws AccumuloSecurityException
listUsers
in interface Authenticator
AccumuloSecurityException
public void createUser(String principal, AuthenticationToken token) throws AccumuloSecurityException
Authenticator
createUser
in interface Authenticator
AccumuloSecurityException
public void dropUser(String user) throws AccumuloSecurityException
dropUser
in interface Authenticator
AccumuloSecurityException
public void changePassword(String user, AuthenticationToken token) throws AccumuloSecurityException
changePassword
in interface Authenticator
AccumuloSecurityException
public boolean userExists(String user)
Authenticator
userExists
in interface Authenticator
public boolean validTokenClass(String tokenClass)
Authenticator
validTokenClass
in interface Authenticator
public Set<Class<? extends AuthenticationToken>> getSupportedTokenTypes()
getSupportedTokenTypes
in interface Authenticator
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.