Class ZKAuthorizor
- java.lang.Object
-
- org.apache.accumulo.server.security.handler.ZKAuthorizor
-
- All Implemented Interfaces:
Authorizor
public class ZKAuthorizor extends Object implements Authorizor
-
-
Constructor Summary
Constructors Constructor Description ZKAuthorizor()
-
Method Summary
All Methods Instance Methods Concrete 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 itw, String rootuser)Used to initialize security for the root uservoidinitUser(String user)Initializes a new userbooleanisValidAuthorizations(String user, List<ByteBuffer> auths)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
public void initialize(ServerContext context)
Description copied from interface:AuthorizorSets up the authorizor for a new instance of Accumulo- Specified by:
initializein interfaceAuthorizor
-
getCachedUserAuthorizations
public Authorizations getCachedUserAuthorizations(String user)
Description copied from interface:AuthorizorUsed to get the authorizations for the user- Specified by:
getCachedUserAuthorizationsin interfaceAuthorizor
-
validSecurityHandlers
public boolean validSecurityHandlers(Authenticator auth, PermissionHandler pm)
Description copied from interface:AuthorizorUsed to validate that the Authorizor, Authenticator, and permission handler can coexist- Specified by:
validSecurityHandlersin interfaceAuthorizor
-
initializeSecurity
public void initializeSecurity(TCredentials itw, String rootuser) throws AccumuloSecurityException
Description copied from interface:AuthorizorUsed to initialize security for the root user- Specified by:
initializeSecurityin interfaceAuthorizor- Throws:
AccumuloSecurityException
-
initUser
public void initUser(String user) throws AccumuloSecurityException
Description copied from interface:AuthorizorInitializes a new user- Specified by:
initUserin interfaceAuthorizor- Throws:
AccumuloSecurityException
-
dropUser
public void dropUser(String user) throws AccumuloSecurityException
Description copied from interface:AuthorizorDeletes a user- Specified by:
dropUserin interfaceAuthorizor- Throws:
AccumuloSecurityException
-
changeAuthorizations
public void changeAuthorizations(String user, Authorizations authorizations) throws AccumuloSecurityException
Description copied from interface:AuthorizorUsed to change the authorizations for the user- Specified by:
changeAuthorizationsin interfaceAuthorizor- Throws:
AccumuloSecurityException
-
isValidAuthorizations
public boolean isValidAuthorizations(String user, List<ByteBuffer> auths)
Description copied from interface:AuthorizorUsed to check if a user has valid auths.- Specified by:
isValidAuthorizationsin interfaceAuthorizor
-
-