Class AccessChecker.InputUser
java.lang.Object
org.apache.hadoop.hbase.security.User
org.apache.hadoop.hbase.security.access.AccessChecker.InputUser
- Enclosing class:
- AccessChecker
A temporary user class to instantiate User instance based on the name and groups.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.security.User
User.SecureHadoopUser, User.TestingGroups
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.security.User
HBASE_SECURITY_AUTHORIZATION_CONF_KEY, HBASE_SECURITY_CONF_KEY, ugi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
Returns the list of groups of which this user is a member.getName()
Returns the full user name.Returns the shortened version of the user name -- the portion that maps to an operating system user name.<T> T
runAs
(PrivilegedAction<T> action) Executes the given action within the context of this user.<T> T
runAs
(PrivilegedExceptionAction<T> action) Executes the given action within the context of this user.toString()
Methods inherited from class org.apache.hadoop.hbase.security.User
addToken, create, createUserForTesting, equals, getCurrent, getToken, getTokens, getUGI, hashCode, isHBaseSecurityEnabled, isLoginFromKeytab, isSecurityEnabled, login, login, runAsLoginUser, shouldLoginFromKeytab
-
Field Details
-
name
-
shortName
-
groups
-
-
Constructor Details
-
InputUser
-
-
Method Details
-
getShortName
Description copied from class:User
Returns the shortened version of the user name -- the portion that maps to an operating system user name.- Specified by:
getShortName
in classUser
- Returns:
- Short name
-
getName
Description copied from class:User
Returns the full user name. For Kerberos principals this will include the host and realm portions of the principal name. -
getGroupNames
Description copied from class:User
Returns the list of groups of which this user is a member. On secure Hadoop this returns the group information for the user as resolved on the server. For 0.20 based Hadoop, the group names are passed from the client.- Overrides:
getGroupNames
in classUser
-
runAs
Description copied from class:User
Executes the given action within the context of this user. -
runAs
Description copied from class:User
Executes the given action within the context of this user.- Specified by:
runAs
in classUser
- Throws:
IOException
InterruptedException
-
toString
-