public class ZKAuthorizor extends Object implements Authorizor
| Constructor and Description |
|---|
ZKAuthorizor() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeAuthorizations(String user,
Authorizations authorizations)
Used to change the authorizations for the user
|
void |
dropUser(String user)
Deletes a user
|
Authorizations |
getCachedUserAuthorizations(String user)
Used to get the authorizations for the user
|
static Authorizor |
getInstance() |
void |
initialize(String instanceId,
boolean initialize)
Sets up the authorizor for a new instance of Accumulo
|
void |
initializeSecurity(TCredentials itw,
String rootuser)
Used to initialize security for the root user
|
void |
initUser(String user)
Initializes a new user
|
boolean |
isValidAuthorizations(String user,
List<ByteBuffer> auths)
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
|
public static Authorizor getInstance()
public void initialize(String instanceId, boolean initialize)
Authorizorinitialize in interface Authorizorpublic Authorizations getCachedUserAuthorizations(String user)
AuthorizorgetCachedUserAuthorizations in interface Authorizorpublic boolean validSecurityHandlers(Authenticator auth, PermissionHandler pm)
AuthorizorvalidSecurityHandlers in interface Authorizorpublic void initializeSecurity(TCredentials itw, String rootuser) throws AccumuloSecurityException
AuthorizorinitializeSecurity in interface AuthorizorAccumuloSecurityExceptionpublic void initUser(String user) throws AccumuloSecurityException
AuthorizorinitUser in interface AuthorizorAccumuloSecurityExceptionpublic void dropUser(String user) throws AccumuloSecurityException
AuthorizordropUser in interface AuthorizorAccumuloSecurityExceptionpublic void changeAuthorizations(String user, Authorizations authorizations) throws AccumuloSecurityException
AuthorizorchangeAuthorizations in interface AuthorizorAccumuloSecurityExceptionpublic boolean isValidAuthorizations(String user, List<ByteBuffer> auths) throws AccumuloSecurityException
AuthorizorisValidAuthorizations in interface AuthorizorAccumuloSecurityExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.