org.apache.accumulo.server.security.handler
Class InsecureAuthenticator
java.lang.Object
org.apache.accumulo.server.security.handler.InsecureAuthenticator
- All Implemented Interfaces:
- Authenticator
public class InsecureAuthenticator
- extends Object
- implements Authenticator
This is an Authenticator implementation that doesn't actually do any security. Any principal will authenticate if a NullToken is provided. It's existence is
primarily for testing, but can also be used for any system where user space management is not a concern.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InsecureAuthenticator
public InsecureAuthenticator()
initialize
public void initialize(String instanceId,
boolean initialize)
- Specified by:
initialize
in interface Authenticator
validSecurityHandlers
public boolean validSecurityHandlers(Authorizor auth,
PermissionHandler pm)
- Specified by:
validSecurityHandlers
in interface Authenticator
initializeSecurity
public void initializeSecurity(TCredentials credentials,
String principal,
byte[] token)
throws AccumuloSecurityException
- Specified by:
initializeSecurity
in interface Authenticator
- Throws:
AccumuloSecurityException
authenticateUser
public boolean authenticateUser(String principal,
AuthenticationToken token)
- Specified by:
authenticateUser
in interface Authenticator
listUsers
public Set<String> listUsers()
throws AccumuloSecurityException
- Specified by:
listUsers
in interface Authenticator
- Throws:
AccumuloSecurityException
createUser
public void createUser(String principal,
AuthenticationToken token)
throws AccumuloSecurityException
- Specified by:
createUser
in interface Authenticator
- Throws:
AccumuloSecurityException
dropUser
public void dropUser(String user)
throws AccumuloSecurityException
- Specified by:
dropUser
in interface Authenticator
- Throws:
AccumuloSecurityException
changePassword
public void changePassword(String user,
AuthenticationToken token)
throws AccumuloSecurityException
- Specified by:
changePassword
in interface Authenticator
- Throws:
AccumuloSecurityException
userExists
public boolean userExists(String user)
- Specified by:
userExists
in interface Authenticator
validTokenClass
public boolean validTokenClass(String tokenClass)
- Description copied from interface:
Authenticator
- Returns true if the given token is appropriate for this Authenticator
- Specified by:
validTokenClass
in interface Authenticator
getSupportedTokenTypes
public Set<Class<? extends AuthenticationToken>> getSupportedTokenTypes()
- Specified by:
getSupportedTokenTypes
in interface Authenticator
Copyright © 2013 Apache Accumulo Project. All Rights Reserved.