Class ZKAuthenticator
java.lang.Object
org.apache.accumulo.server.security.handler.ZKAuthenticator
- All Implemented Interfaces:
Authenticator
-
Constructor Summary
Constructors -
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>>
boolean
Checks stored users and logs a warning containing the ones with outdated hashes.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
-
Constructor Details
-
ZKAuthenticator
public ZKAuthenticator()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfaceAuthenticator
-
hasOutdatedHashes
public boolean hasOutdatedHashes()Checks stored users and logs a warning containing the ones with outdated hashes. -
initializeSecurity
- Specified by:
initializeSecurity
in interfaceAuthenticator
-
listUsers
- Specified by:
listUsers
in interfaceAuthenticator
-
createUser
public void createUser(String principal, AuthenticationToken token) throws AccumuloSecurityException Description copied from interface:Authenticator
Creates a user with no initial permissions whatsoever- Specified by:
createUser
in interfaceAuthenticator
- Throws:
AccumuloSecurityException
-
dropUser
- Specified by:
dropUser
in interfaceAuthenticator
- Throws:
AccumuloSecurityException
-
changePassword
public void changePassword(String principal, AuthenticationToken token) throws AccumuloSecurityException - Specified by:
changePassword
in interfaceAuthenticator
- Throws:
AccumuloSecurityException
-
userExists
Description copied from interface:Authenticator
Checks if a user exists- Specified by:
userExists
in interfaceAuthenticator
-
validSecurityHandlers
public boolean validSecurityHandlers()- Specified by:
validSecurityHandlers
in interfaceAuthenticator
-
authenticateUser
public boolean authenticateUser(String principal, AuthenticationToken token) throws AccumuloSecurityException - Specified by:
authenticateUser
in interfaceAuthenticator
- Throws:
AccumuloSecurityException
-
getSupportedTokenTypes
- Specified by:
getSupportedTokenTypes
in interfaceAuthenticator
-
validTokenClass
Description copied from interface:Authenticator
Returns true if the given token is appropriate for this Authenticator- Specified by:
validTokenClass
in interfaceAuthenticator
-