Interface Authorizor
-
- All Known Implementing Classes:
KerberosAuthorizor,ZKAuthorizor
public interface AuthorizorThis 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 voidchangeAuthorizations(String user, Authorizations authorizations)Used to change the authorizations for the uservoiddropUser(String user)Deletes a userAuthorizationsgetCachedUserAuthorizations(String user)Used to get the authorizations for the uservoidinitialize(ServerContext context)Sets up the authorizor for a new instance of AccumulovoidinitializeSecurity(TCredentials credentials, String rootuser)Used to initialize security for the root uservoidinitUser(String user)Initializes a new userbooleanisValidAuthorizations(String user, List<ByteBuffer> list)Used to check if a user has valid auths.booleanvalidSecurityHandlers(Authenticator auth, PermissionHandler pm)Used to validate that the Authorizor, Authenticator, and permission handler can coexist
-
-
-
Method Detail
-
initialize
void initialize(ServerContext context)
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
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
Authorizations getCachedUserAuthorizations(String user)
Used to get the authorizations for the user
-
isValidAuthorizations
boolean isValidAuthorizations(String user, List<ByteBuffer> list)
Used to check if a user has valid auths.
-
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
-
-