org.apache.accumulo.server.security.handler
Class InsecureAuthenticator

java.lang.Object
  extended by 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.


Constructor Summary
InsecureAuthenticator()
           
 
Method Summary
 boolean authenticateUser(String principal, AuthenticationToken token)
           
 void changePassword(String user, AuthenticationToken token)
           
 void createUser(String principal, AuthenticationToken token)
           
 void dropUser(String user)
           
 Set<Class<? extends AuthenticationToken>> getSupportedTokenTypes()
           
 void initialize(String instanceId, boolean initialize)
           
 void initializeSecurity(TCredentials credentials, String principal, byte[] token)
           
 Set<String> listUsers()
           
 boolean userExists(String user)
           
 boolean validSecurityHandlers(Authorizor auth, PermissionHandler pm)
           
 boolean validTokenClass(String tokenClass)
          Returns true if the given token is appropriate for this Authenticator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsecureAuthenticator

public InsecureAuthenticator()
Method Detail

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.