org.apache.accumulo.server.security.handler
Interface Authenticator
- All Known Implementing Classes:
- InsecureAuthenticator, WalkingSecurity, ZKAuthenticator
public interface Authenticator
This interface is used for the system which will be used for authenticating a user. If the implementation does not support configuration through Accumulo, it
should throw an AccumuloSecurityException with the error code UNSUPPORTED_OPERATION
initialize
void initialize(String instanceId,
boolean initialize)
validSecurityHandlers
boolean validSecurityHandlers(Authorizor auth,
PermissionHandler pm)
initializeSecurity
void initializeSecurity(TCredentials credentials,
String principal,
byte[] token)
throws AccumuloSecurityException,
ThriftSecurityException
- Throws:
AccumuloSecurityException
ThriftSecurityException
authenticateUser
boolean authenticateUser(String principal,
AuthenticationToken token)
throws AccumuloSecurityException
- Throws:
AccumuloSecurityException
listUsers
Set<String> listUsers()
throws AccumuloSecurityException
- Throws:
AccumuloSecurityException
createUser
void createUser(String principal,
AuthenticationToken token)
throws AccumuloSecurityException
- Throws:
AccumuloSecurityException
dropUser
void dropUser(String user)
throws AccumuloSecurityException
- Throws:
AccumuloSecurityException
changePassword
void changePassword(String principal,
AuthenticationToken token)
throws AccumuloSecurityException
- Throws:
AccumuloSecurityException
userExists
boolean userExists(String user)
throws AccumuloSecurityException
- Throws:
AccumuloSecurityException
getSupportedTokenTypes
Set<Class<? extends AuthenticationToken>> getSupportedTokenTypes()
validTokenClass
boolean validTokenClass(String tokenClass)
- Returns true if the given token is appropriate for this Authenticator
Copyright © 2013 Apache Accumulo Project. All Rights Reserved.