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

java.lang.Object
  extended by org.apache.accumulo.server.security.handler.ZKAuthorizor
All Implemented Interfaces:
Authorizor

public class ZKAuthorizor
extends Object
implements Authorizor


Constructor Summary
ZKAuthorizor()
           
 
Method Summary
 void changeAuthorizations(String user, Authorizations authorizations)
          Used to change the authorizations for the user
 void dropUser(String user)
          Deletes a user
 Authorizations getCachedUserAuthorizations(String user)
          Used to get the authorizations for the user
static Authorizor getInstance()
           
 void initialize(String instanceId, boolean initialize)
          Sets up the authorizor for a new instance of Accumulo
 void initializeSecurity(TCredentials itw, String rootuser)
          Used to initialize security for the root user
 void initUser(String user)
          Initializes a new user
 boolean validSecurityHandlers(Authenticator auth, PermissionHandler pm)
          Used to validate that the Authorizor, Authenticator, and permission handler can coexist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZKAuthorizor

public ZKAuthorizor()
Method Detail

getInstance

public static Authorizor getInstance()

initialize

public void initialize(String instanceId,
                       boolean initialize)
Description copied from interface: Authorizor
Sets up the authorizor for a new instance of Accumulo

Specified by:
initialize in interface Authorizor

getCachedUserAuthorizations

public Authorizations getCachedUserAuthorizations(String user)
Description copied from interface: Authorizor
Used to get the authorizations for the user

Specified by:
getCachedUserAuthorizations in interface Authorizor

validSecurityHandlers

public boolean validSecurityHandlers(Authenticator auth,
                                     PermissionHandler pm)
Description copied from interface: Authorizor
Used to validate that the Authorizor, Authenticator, and permission handler can coexist

Specified by:
validSecurityHandlers in interface Authorizor

initializeSecurity

public void initializeSecurity(TCredentials itw,
                               String rootuser)
                        throws AccumuloSecurityException
Description copied from interface: Authorizor
Used to initialize security for the root user

Specified by:
initializeSecurity in interface Authorizor
Throws:
AccumuloSecurityException

initUser

public void initUser(String user)
              throws AccumuloSecurityException
Description copied from interface: Authorizor
Initializes a new user

Specified by:
initUser in interface Authorizor
Parameters:
user -
Throws:
AccumuloSecurityException

dropUser

public void dropUser(String user)
              throws AccumuloSecurityException
Description copied from interface: Authorizor
Deletes a user

Specified by:
dropUser in interface Authorizor
Throws:
AccumuloSecurityException

changeAuthorizations

public void changeAuthorizations(String user,
                                 Authorizations authorizations)
                          throws AccumuloSecurityException
Description copied from interface: Authorizor
Used to change the authorizations for the user

Specified by:
changeAuthorizations in interface Authorizor
Throws:
AccumuloSecurityException


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.