Package | Description |
---|---|
org.apache.hadoop.hbase.client |
Provides HBase Client
|
org.apache.hadoop.hbase.coprocessor |
Table of Contents
|
org.apache.hadoop.hbase.master | |
org.apache.hadoop.hbase.security.access | |
org.apache.hadoop.hbase.thrift2.client |
Modifier and Type | Method and Description |
---|---|
Mutation |
Mutation.setACL(String user,
Permission perms)
Set the ACL for this operation.
|
Scan |
Scan.setACL(String user,
Permission perms) |
Append |
Append.setACL(String user,
Permission perms) |
Increment |
Increment.setACL(String user,
Permission perms) |
Query |
Query.setACL(String user,
Permission perms)
Set the ACL for the operation.
|
Scan |
ImmutableScan.setACL(String user,
Permission perms) |
Put |
Put.setACL(String user,
Permission perms) |
Delete |
Delete.setACL(String user,
Permission perms) |
Get |
Get.setACL(String user,
Permission perms) |
Modifier and Type | Method and Description |
---|---|
default List<Boolean> |
Admin.hasUserPermissions(List<Permission> permissions)
Check if call user has specific permissions
|
default CompletableFuture<List<Boolean>> |
AsyncAdmin.hasUserPermissions(List<Permission> permissions)
Check if call user has specific permissions
|
List<Boolean> |
Admin.hasUserPermissions(String userName,
List<Permission> permissions)
Check if the user has specific permissions
|
CompletableFuture<List<Boolean>> |
AsyncAdmin.hasUserPermissions(String userName,
List<Permission> permissions)
Check if the user has specific permissions
|
CompletableFuture<List<Boolean>> |
RawAsyncHBaseAdmin.hasUserPermissions(String userName,
List<Permission> permissions) |
CompletableFuture<List<Boolean>> |
AsyncHBaseAdmin.hasUserPermissions(String userName,
List<Permission> permissions) |
List<Boolean> |
HBaseAdmin.hasUserPermissions(String userName,
List<Permission> permissions) |
Mutation |
Mutation.setACL(Map<String,Permission> perms)
Set the ACL for this operation.
|
Scan |
Scan.setACL(Map<String,Permission> perms) |
Append |
Append.setACL(Map<String,Permission> perms) |
Increment |
Increment.setACL(Map<String,Permission> perms) |
Query |
Query.setACL(Map<String,Permission> perms)
Set the ACL for the operation.
|
Scan |
ImmutableScan.setACL(Map<String,Permission> perms) |
Put |
Put.setACL(Map<String,Permission> perms) |
Delete |
Delete.setACL(Map<String,Permission> perms) |
Get |
Get.setACL(Map<String,Permission> perms) |
Modifier and Type | Method and Description |
---|---|
default void |
MasterObserver.postHasUserPermissions(ObserverContext<MasterCoprocessorEnvironment> ctx,
String userName,
List<Permission> permissions)
Called after checking if user has permissions.
|
default void |
MasterObserver.preHasUserPermissions(ObserverContext<MasterCoprocessorEnvironment> ctx,
String userName,
List<Permission> permissions) |
Modifier and Type | Method and Description |
---|---|
void |
MasterCoprocessorHost.postHasUserPermissions(String userName,
List<Permission> permissions) |
void |
MasterCoprocessorHost.preHasUserPermissions(String userName,
List<Permission> permissions) |
Modifier and Type | Class and Description |
---|---|
private static class |
AuthManager.PermissionCache<T extends Permission>
Cache of permissions, it is thread safe.
|
Modifier and Type | Class and Description |
---|---|
class |
GlobalPermission
Represents an authorization for access whole cluster.
|
class |
NamespacePermission
Represents an authorization for access for the given namespace.
|
class |
TablePermission
Represents an authorization for access for the given actions, optionally restricted to the given
column family or column qualifier, over the given table.
|
Modifier and Type | Field and Description |
---|---|
private Permission |
UserPermission.permission |
Modifier and Type | Method and Description |
---|---|
Permission |
Permission.Builder.build() |
Permission |
UserPermission.getPermission() |
static Permission |
AccessControlUtil.toPermission(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.Permission proto)
Converts a Permission proto to a client Permission object.
|
static Permission |
ShadedAccessControlUtil.toPermission(org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.Permission proto)
Converts a Permission shaded proto to a client TablePermission object.
|
Modifier and Type | Method and Description |
---|---|
static List<Permission> |
PermissionStorage.getCellPermissionsForUser(User user,
Cell cell) |
private static Pair<String,Permission> |
PermissionStorage.parsePermissionRecord(byte[] entryName,
Cell kv,
byte[] cf,
byte[] cq,
boolean filterPerms,
String filterUser) |
static org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,Permission> |
PermissionStorage.readPermissions(byte[] data,
org.apache.hadoop.conf.Configuration conf) |
private static List<Permission> |
PermissionStorage.readWritableUserPermission(DataInput in,
org.apache.hadoop.conf.Configuration conf) |
static org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,Permission> |
AccessControlUtil.toPermission(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.UsersAndPermissions proto)
Convert a protobuf UserTablePermissions to a ListMultimap<Username, Permission>
|
static org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,Permission> |
AccessControlUtil.toUsersAndPermissions(org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.UsersAndPermissions proto) |
static org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,Permission> |
ShadedAccessControlUtil.toUserTablePermissions(org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.UsersAndPermissions proto)
Convert a shaded protobuf UserTablePermissions to a ListMultimap<String, TablePermission>
where key is username.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AccessChecker.hasUserPermission(User user,
String request,
Permission permission)
Authorizes that if the current user has the given permissions.
|
boolean |
NoopAccessChecker.hasUserPermission(User user,
String request,
Permission permission) |
static org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.Permission |
AccessControlUtil.toPermission(Permission perm)
Convert a client Permission to a Permission proto
|
static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.Permission |
ShadedAccessControlUtil.toPermission(Permission perm)
Convert a client Permission to a Permission shaded proto
|
static org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.UsersAndPermissions |
AccessControlUtil.toUsersAndPermissions(String user,
Permission perms) |
(package private) static byte[] |
PermissionStorage.userPermissionRowKey(Permission permission) |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.HasUserPermissionsRequest |
ShadedAccessControlUtil.buildHasUserPermissionsRequest(String userName,
List<Permission> permissions) |
void |
AccessController.preHasUserPermissions(ObserverContext<MasterCoprocessorEnvironment> ctx,
String userName,
List<Permission> permissions) |
private void |
AccessController.preHasUserPermissions(User caller,
String userName,
List<Permission> permissions) |
static org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos.UsersAndPermissions |
AccessControlUtil.toUsersAndPermissions(org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,Permission> perms) |
private void |
AuthManager.updateCache(org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,? extends Permission> newPermissions,
AuthManager.PermissionCache cacheToUpdate) |
private void |
AuthManager.updateGlobalCache(org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,Permission> globalPerms)
Updates the internal global permissions cache.
|
private void |
AuthManager.updateNamespaceCache(String namespace,
org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,Permission> nsPerms)
Updates the internal namespace permissions cache for specified namespace.
|
private void |
AuthManager.updateTableCache(TableName table,
org.apache.hbase.thirdparty.com.google.common.collect.ListMultimap<String,Permission> tablePerms)
Updates the internal table permissions cache for specified table.
|
Constructor and Description |
---|
UserPermission(String user,
Permission permission)
Construct a user permission given permission.
|
Modifier and Type | Method and Description |
---|---|
List<Boolean> |
ThriftAdmin.hasUserPermissions(String userName,
List<Permission> permissions) |
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.