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
FieldsFields inherited from class org.apache.hadoop.hbase.security.User
HBASE_SECURITY_AUTHORIZATION_CONF_KEY, HBASE_SECURITY_CONF_KEY, ugi -
Constructor Summary
Constructors -
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> TrunAs(PrivilegedAction<T> action) Executes the given action within the context of this user.<T> TrunAs(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:UserReturns the shortened version of the user name -- the portion that maps to an operating system user name.- Specified by:
getShortNamein classUser- Returns:
- Short name
-
getName
Description copied from class:UserReturns the full user name. For Kerberos principals this will include the host and realm portions of the principal name. -
getGroupNames
Description copied from class:UserReturns 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:
getGroupNamesin classUser
-
runAs
Description copied from class:UserExecutes the given action within the context of this user. -
runAs
Description copied from class:UserExecutes the given action within the context of this user.- Specified by:
runAsin classUser- Throws:
IOExceptionInterruptedException
-
toString
-