Interface Authenticator
- All Known Implementing Classes:
KerberosAuthenticator
,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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
authenticateUser
(String principal, AuthenticationToken token) void
changePassword
(String principal, AuthenticationToken token) void
createUser
(String principal, AuthenticationToken token) Creates a user with no initial permissions whatsoevervoid
Set<Class<? extends AuthenticationToken>>
void
initialize
(ServerContext context) void
initializeSecurity
(String principal, byte[] token) boolean
userExists
(String user) Checks if a user existsboolean
boolean
validTokenClass
(String tokenClass) Returns true if the given token is appropriate for this Authenticator
-
Method Details
-
initialize
-
validSecurityHandlers
boolean validSecurityHandlers() -
initializeSecurity
-
authenticateUser
boolean authenticateUser(String principal, AuthenticationToken token) throws AccumuloSecurityException - Throws:
AccumuloSecurityException
-
listUsers
-
createUser
Creates a user with no initial permissions whatsoever- Throws:
AccumuloSecurityException
-
dropUser
- Throws:
AccumuloSecurityException
-
changePassword
- Throws:
AccumuloSecurityException
-
userExists
Checks if a user exists -
getSupportedTokenTypes
Set<Class<? extends AuthenticationToken>> getSupportedTokenTypes() -
validTokenClass
Returns true if the given token is appropriate for this Authenticator
-