public static class AccessChecker.InputUser extends User
User.SecureHadoopUser, User.TestingGroups| Modifier and Type | Field and Description | 
|---|---|
private String[] | 
groups  | 
private String | 
name  | 
private String | 
shortName  | 
HBASE_SECURITY_AUTHORIZATION_CONF_KEY, HBASE_SECURITY_CONF_KEY, ugi| Constructor and Description | 
|---|
InputUser(String name,
         String[] groups)  | 
| Modifier and Type | Method and Description | 
|---|---|
String[] | 
getGroupNames()
Returns the list of groups of which this user is a member. 
 | 
String | 
getName()
Returns the full user name. 
 | 
String | 
getShortName()
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. 
 | 
String | 
toString()  | 
addToken, create, createUserForTesting, equals, getCurrent, getToken, getTokens, getUGI, hashCode, isHBaseSecurityEnabled, isLoginFromKeytab, isSecurityEnabled, login, login, runAsLoginUser, shouldLoginFromKeytabpublic String getShortName()
UsergetShortName in class Userpublic String getName()
Userpublic String[] getGroupNames()
UsergetGroupNames in class Userpublic <T> T runAs(PrivilegedAction<T> action)
Userpublic <T> T runAs(PrivilegedExceptionAction<T> action) throws IOException, InterruptedException
UserrunAs in class UserIOExceptionInterruptedExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.