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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
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
dropUser(String user)
Set<Class<? extends AuthenticationToken>>
getSupportedTokenTypes()
void
initialize(ServerContext context)
void
initializeSecurity(String principal, byte[] token)
Set<String>
listUsers()
boolean
userExists(String user)
Checks if a user existsboolean
validSecurityHandlers()
boolean
validTokenClass(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
-
-