org.apache.accumulo.server.security.handler
Interface Authorizor

All Known Implementing Classes:
WalkingSecurity, ZKAuthorizor

public interface Authorizor

This interface is used for the system which will be used for getting a users Authorizations. If the implementation does not support configuration through Accumulo, it should throw an AccumuloSecurityException with the error code UNSUPPORTED_OPERATION


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
 void initialize(String instanceId, boolean initialize)
          Sets up the authorizor for a new instance of Accumulo
 void initializeSecurity(TCredentials credentials, 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
 

Method Detail

initialize

void initialize(String instanceId,
                boolean initialize)
Sets up the authorizor for a new instance of Accumulo


validSecurityHandlers

boolean validSecurityHandlers(Authenticator auth,
                              PermissionHandler pm)
Used to validate that the Authorizor, Authenticator, and permission handler can coexist


initializeSecurity

void initializeSecurity(TCredentials credentials,
                        String rootuser)
                        throws AccumuloSecurityException,
                               ThriftSecurityException
Used to initialize security for the root user

Throws:
AccumuloSecurityException
ThriftSecurityException

changeAuthorizations

void changeAuthorizations(String user,
                          Authorizations authorizations)
                          throws AccumuloSecurityException
Used to change the authorizations for the user

Throws:
AccumuloSecurityException

getCachedUserAuthorizations

Authorizations getCachedUserAuthorizations(String user)
                                           throws AccumuloSecurityException
Used to get the authorizations for the user

Throws:
AccumuloSecurityException

initUser

void initUser(String user)
              throws AccumuloSecurityException
Initializes a new user

Throws:
AccumuloSecurityException

dropUser

void dropUser(String user)
              throws AccumuloSecurityException
Deletes a user

Throws:
AccumuloSecurityException


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.