Interface Authenticator
-
- All Known Implementing Classes:
KerberosAuthenticator,ZKAuthenticator
public interface AuthenticatorThis 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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanauthenticateUser(String principal, AuthenticationToken token)voidchangePassword(String principal, AuthenticationToken token)voidcreateUser(String principal, AuthenticationToken token)Creates a user with no initial permissions whatsoevervoiddropUser(String user)Set<Class<? extends AuthenticationToken>>getSupportedTokenTypes()voidinitialize(ServerContext context)voidinitializeSecurity(String principal, byte[] token)Set<String>listUsers()booleanuserExists(String user)Checks if a user existsbooleanvalidSecurityHandlers()booleanvalidTokenClass(String tokenClass)Returns true if the given token is appropriate for this Authenticator
-
-
-
Method Detail
-
initialize
void initialize(ServerContext context)
-
validSecurityHandlers
boolean validSecurityHandlers()
-
initializeSecurity
void initializeSecurity(String principal, byte[] token)
-
authenticateUser
boolean authenticateUser(String principal, AuthenticationToken token) throws AccumuloSecurityException
- Throws:
AccumuloSecurityException
-
createUser
void createUser(String principal, AuthenticationToken token) throws AccumuloSecurityException
Creates a user with no initial permissions whatsoever- 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)
Checks if a user exists
-
getSupportedTokenTypes
Set<Class<? extends AuthenticationToken>> getSupportedTokenTypes()
-
validTokenClass
boolean validTokenClass(String tokenClass)
Returns true if the given token is appropriate for this Authenticator
-
-