Class KerberosAuthorizor
- java.lang.Object
-
- org.apache.accumulo.server.security.handler.KerberosAuthorizor
-
- All Implemented Interfaces:
Authorizor
public class KerberosAuthorizor extends Object implements Authorizor
Kerberos principals might contains identifiers that are not valid ZNodes ('/'). Base64-encodes the principals before interacting with ZooKeeper.
-
-
Constructor Summary
Constructors Constructor Description KerberosAuthorizor()
-
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 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
public void initialize(ServerContext context)
Description copied from interface:AuthorizorSets up the authorizor for a new instance of Accumulo- Specified by:
initializein 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 credentials, String rootuser) throws AccumuloSecurityException
Description copied from interface:AuthorizorUsed to initialize security for the root user- Specified by:
initializeSecurityin 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
-
getCachedUserAuthorizations
public Authorizations getCachedUserAuthorizations(String user)
Description copied from interface:AuthorizorUsed to get the authorizations for the user- Specified by:
getCachedUserAuthorizationsin interfaceAuthorizor
-
isValidAuthorizations
public boolean isValidAuthorizations(String user, List<ByteBuffer> list)
Description copied from interface:AuthorizorUsed to check if a user has valid auths.- Specified by:
isValidAuthorizationsin interfaceAuthorizor
-
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
-
-