public interface PermissionHandler
Modifier and Type | Method and Description |
---|---|
void |
cleanNamespacePermissions(String namespace)
Cleans up the permissions for a namespace.
|
void |
cleanTablePermissions(String table)
Cleans up the permissions for a table.
|
void |
cleanUser(String user)
Deletes a user
|
void |
grantNamespacePermission(String user,
String namespace,
NamespacePermission permission)
Gives the user the given namespace permission
|
void |
grantSystemPermission(String user,
SystemPermission permission)
Gives the user the given system permission
|
void |
grantTablePermission(String user,
String table,
TablePermission permission)
Gives the user the given table permission
|
boolean |
hasCachedNamespacePermission(String user,
String namespace,
NamespacePermission permission)
Used to get the namespace permission of a user for a namespace, with caching.
|
boolean |
hasCachedSystemPermission(String user,
SystemPermission permission)
Used to get the system permission for the user, with caching due to high frequency operation.
|
boolean |
hasCachedTablePermission(String user,
String table,
TablePermission permission)
Used to get the table permission of a user for a table, with caching.
|
boolean |
hasNamespacePermission(String user,
String namespace,
NamespacePermission permission)
Used to get the namespace permission of a user for a namespace
|
boolean |
hasSystemPermission(String user,
SystemPermission permission)
Used to get the system permission for the user
|
boolean |
hasTablePermission(String user,
String table,
TablePermission permission)
Used to get the table permission of a user for a table
|
void |
initialize(String instanceId,
boolean initialize)
Sets up the permission handler for a new instance of Accumulo
|
void |
initializeSecurity(TCredentials credentials,
String rootuser)
Used to initialize security for the root user
|
void |
initTable(String table)
Initializes a new user
|
void |
initUser(String user)
Initializes a new user
|
void |
revokeNamespacePermission(String user,
String namespace,
NamespacePermission permission)
Denies the user the given namespace permission.
|
void |
revokeSystemPermission(String user,
SystemPermission permission)
Denies the user the given system permission
|
void |
revokeTablePermission(String user,
String table,
TablePermission permission)
Denies the user the given table permission.
|
boolean |
validSecurityHandlers(Authenticator authent,
Authorizor author)
Used to validate that the Authorizor, Authenticator, and permission handler can coexist
|
void initialize(String instanceId, boolean initialize)
boolean validSecurityHandlers(Authenticator authent, Authorizor author)
void initializeSecurity(TCredentials credentials, String rootuser) throws AccumuloSecurityException, ThriftSecurityException
boolean hasSystemPermission(String user, SystemPermission permission) throws AccumuloSecurityException
AccumuloSecurityException
boolean hasCachedSystemPermission(String user, SystemPermission permission) throws AccumuloSecurityException
AccumuloSecurityException
boolean hasTablePermission(String user, String table, TablePermission permission) throws AccumuloSecurityException, TableNotFoundException
boolean hasCachedTablePermission(String user, String table, TablePermission permission) throws AccumuloSecurityException, TableNotFoundException
boolean hasNamespacePermission(String user, String namespace, NamespacePermission permission) throws AccumuloSecurityException, NamespaceNotFoundException
boolean hasCachedNamespacePermission(String user, String namespace, NamespacePermission permission) throws AccumuloSecurityException, NamespaceNotFoundException
void grantSystemPermission(String user, SystemPermission permission) throws AccumuloSecurityException
AccumuloSecurityException
void revokeSystemPermission(String user, SystemPermission permission) throws AccumuloSecurityException
AccumuloSecurityException
void grantTablePermission(String user, String table, TablePermission permission) throws AccumuloSecurityException, TableNotFoundException
void revokeTablePermission(String user, String table, TablePermission permission) throws AccumuloSecurityException, TableNotFoundException
void grantNamespacePermission(String user, String namespace, NamespacePermission permission) throws AccumuloSecurityException, NamespaceNotFoundException
void revokeNamespacePermission(String user, String namespace, NamespacePermission permission) throws AccumuloSecurityException, NamespaceNotFoundException
void cleanTablePermissions(String table) throws AccumuloSecurityException, TableNotFoundException
void cleanNamespacePermissions(String namespace) throws AccumuloSecurityException, NamespaceNotFoundException
void initUser(String user) throws AccumuloSecurityException
AccumuloSecurityException
void initTable(String table) throws AccumuloSecurityException
AccumuloSecurityException
void cleanUser(String user) throws AccumuloSecurityException
AccumuloSecurityException
Copyright © 2011–2016 The Apache Software Foundation. All rights reserved.