Class PermissionUtils
java.lang.Object
org.apache.hadoop.hbase.security.access.PermissionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<UserPermission>filter(List<UserPermission> userPerms, byte[] cf, byte[] cq, String username) Filter user permissions based on column family, column qualifier, and username.static List<UserPermission>filter(List<UserPermission> userPerms, String username) Filter user permissions based on username.getUserGroups(org.apache.commons.lang3.mutable.MutableObject<Set<String>> userGroupsHolder, String username)
-
Constructor Details
-
PermissionUtils
public PermissionUtils()
-
-
Method Details
-
getUserGroups
-
filter
Filter user permissions based on username. Just delegate call tofilter(List, byte[], byte[], String)with nullcfandcq. -
filter
public static List<UserPermission> filter(List<UserPermission> userPerms, byte[] cf, byte[] cq, String username) Filter user permissions based on column family, column qualifier, and username.Notice that, if
cforcqis not null, we will assume that the permission is a table permission.When there is group permission, i.e, the user field for the
UserPermissionis start with @, then we will check whether the givenusernamebelongs to this group, if the givenusernameitself is not a group.
-