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)
Authorizor
initialize
in interface Authorizor
public Authorizations getCachedUserAuthorizations(String user)
Authorizor
getCachedUserAuthorizations
in interface Authorizor
public boolean validSecurityHandlers(Authenticator auth, PermissionHandler pm)
Authorizor
validSecurityHandlers
in interface Authorizor
public void initializeSecurity(TCredentials itw, String rootuser) throws AccumuloSecurityException
Authorizor
initializeSecurity
in interface Authorizor
AccumuloSecurityException
public void initUser(String user) throws AccumuloSecurityException
Authorizor
initUser
in interface Authorizor
AccumuloSecurityException
public void dropUser(String user) throws AccumuloSecurityException
Authorizor
dropUser
in interface Authorizor
AccumuloSecurityException
public void changeAuthorizations(String user, Authorizations authorizations) throws AccumuloSecurityException
Authorizor
changeAuthorizations
in interface Authorizor
AccumuloSecurityException
public boolean isValidAuthorizations(String user, List<ByteBuffer> auths) throws AccumuloSecurityException
Authorizor
isValidAuthorizations
in interface Authorizor
AccumuloSecurityException
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.