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
Modifier and TypeMethodDescriptionvoid
changeAuthorizations
(String user, Authorizations authorizations) Used to change the authorizations for the uservoid
Deletes a userUsed to get the authorizations for the uservoid
initialize
(ServerContext context) Sets up the authorizor for a new instance of Accumulovoid
initializeSecurity
(TCredentials credentials, String rootuser) Used to initialize security for the root uservoid
Initializes a new userboolean
isValidAuthorizations
(String user, List<ByteBuffer> list) Used to check if a user has valid auths.boolean
Used to validate that the Authorizor, Authenticator, and permission handler can coexist
-
Method Details
-
initialize
Sets up the authorizor for a new instance of Accumulo -
validSecurityHandlers
Used to validate that the Authorizor, Authenticator, and permission handler can coexist -
initializeSecurity
Used to initialize security for the root user- Throws:
AccumuloSecurityException
-
changeAuthorizations
void changeAuthorizations(String user, Authorizations authorizations) throws AccumuloSecurityException Used to change the authorizations for the user- Throws:
AccumuloSecurityException
-
getCachedUserAuthorizations
Used to get the authorizations for the user -
isValidAuthorizations
Used to check if a user has valid auths. -
initUser
Initializes a new user- Throws:
AccumuloSecurityException
-
dropUser
Deletes a user- Throws:
AccumuloSecurityException
-