|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.security.access.AccessControlClient
@InterfaceAudience.Public @InterfaceStability.Evolving public class AccessControlClient
Utility client for doing access control admin operations.
| Field Summary | |
|---|---|
static TableName |
ACL_TABLE_NAME
|
| Constructor Summary | |
|---|---|
AccessControlClient()
|
|
| Method Summary | |
|---|---|
static List<UserPermission> |
getUserPermissions(org.apache.hadoop.conf.Configuration conf,
String tableRegex)
List all the userPermissions matching the given pattern. |
static void |
grant(org.apache.hadoop.conf.Configuration conf,
String userName,
Permission.Action... actions)
Grant global permissions for the specified user. |
static void |
grant(org.apache.hadoop.conf.Configuration conf,
String namespace,
String userName,
Permission.Action... actions)
Grants permission on the specified namespace for the specified user. |
static org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.GrantResponse |
grant(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
String userName,
byte[] family,
byte[] qual,
org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.Permission.Action... actions)
Deprecated. Use grant(Configuration, TableName, String, byte[], byte[], Permission.Action...) instead. |
static void |
grant(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
String userName,
byte[] family,
byte[] qual,
Permission.Action... actions)
Grants permission on the specified table for the specified user |
static boolean |
isAccessControllerRunning(org.apache.hadoop.conf.Configuration conf)
|
static boolean |
isAuthorizationEnabled(org.apache.hadoop.conf.Configuration conf)
Return true if authorization is supported and enabled |
static boolean |
isCellAuthorizationEnabled(org.apache.hadoop.conf.Configuration conf)
Return true if cell authorization is supported and enabled |
static void |
revoke(org.apache.hadoop.conf.Configuration conf,
String userName,
Permission.Action... actions)
Revoke global permissions for the specified user. |
static void |
revoke(org.apache.hadoop.conf.Configuration conf,
String namespace,
String userName,
Permission.Action... actions)
Revokes the permission on the table for the specified user. |
static org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.RevokeResponse |
revoke(org.apache.hadoop.conf.Configuration conf,
String username,
TableName tableName,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.Permission.Action... actions)
Deprecated. Use revoke(Configuration, TableName, String, byte[], byte[], Permission.Action...) instead |
static void |
revoke(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
String username,
byte[] family,
byte[] qualifier,
Permission.Action... actions)
Revokes the permission on the table |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final TableName ACL_TABLE_NAME
| Constructor Detail |
|---|
public AccessControlClient()
| Method Detail |
|---|
public static boolean isAuthorizationEnabled(org.apache.hadoop.conf.Configuration conf)
throws IOException
conf -
IOException
public static boolean isCellAuthorizationEnabled(org.apache.hadoop.conf.Configuration conf)
throws IOException
conf -
IOException
public static void grant(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
String userName,
byte[] family,
byte[] qual,
Permission.Action... actions)
throws Throwable
conf - tableName - userName - family - qual - actions -
Throwable
public static void grant(org.apache.hadoop.conf.Configuration conf,
String namespace,
String userName,
Permission.Action... actions)
throws Throwable
conf - namespace - userName - actions -
Throwable
public static void grant(org.apache.hadoop.conf.Configuration conf,
String userName,
Permission.Action... actions)
throws Throwable
Throwable
public static boolean isAccessControllerRunning(org.apache.hadoop.conf.Configuration conf)
throws MasterNotRunningException,
ZooKeeperConnectionException,
IOException
MasterNotRunningException
ZooKeeperConnectionException
IOException
public static void revoke(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
String username,
byte[] family,
byte[] qualifier,
Permission.Action... actions)
throws Throwable
conf - tableName - username - family - qualifier - actions -
Throwable
public static void revoke(org.apache.hadoop.conf.Configuration conf,
String namespace,
String userName,
Permission.Action... actions)
throws Throwable
conf - namespace - userName - actions -
Throwable
public static void revoke(org.apache.hadoop.conf.Configuration conf,
String userName,
Permission.Action... actions)
throws Throwable
Throwable
public static List<UserPermission> getUserPermissions(org.apache.hadoop.conf.Configuration conf,
String tableRegex)
throws Throwable
conf - tableRegex - The regular expression string to match against
Throwable
@Deprecated
public static org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.GrantResponse grant(org.apache.hadoop.conf.Configuration conf,
TableName tableName,
String userName,
byte[] family,
byte[] qual,
org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.Permission.Action... actions)
throws Throwable
grant(Configuration, TableName, String, byte[], byte[], Permission.Action...) instead.
conf - tableName - userName - family - qual - actions -
Throwable
@Deprecated
public static org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.RevokeResponse revoke(org.apache.hadoop.conf.Configuration conf,
String username,
TableName tableName,
byte[] family,
byte[] qualifier,
org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.Permission.Action... actions)
throws Throwable
revoke(Configuration, TableName, String, byte[], byte[], Permission.Action...) instead
conf - username - tableName - family - qualifier - actions -
Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||