Interface Authorizor
-
- All Known Implementing Classes:
KerberosAuthorizor
,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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
changeAuthorizations(String user, Authorizations authorizations)
Used to change the authorizations for the uservoid
dropUser(String user)
Deletes a userAuthorizations
getCachedUserAuthorizations(String user)
Used to get the authorizations for the uservoid
initialize(String instanceId, boolean initialize)
Sets up the authorizor for a new instance of Accumulovoid
initializeSecurity(TCredentials credentials, String rootuser)
Used to initialize security for the root uservoid
initUser(String user)
Initializes a new userboolean
isValidAuthorizations(String user, List<ByteBuffer> list)
Used to check if a user has valid auths.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
-
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
-
isValidAuthorizations
boolean isValidAuthorizations(String user, List<ByteBuffer> list) throws AccumuloSecurityException
Used to check if a user has valid auths.- 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
-
-