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, shouldLoginFromKeytab
public String getShortName()
User
getShortName
in class User
public String getName()
User
public String[] getGroupNames()
User
getGroupNames
in class User
public <T> T runAs(PrivilegedAction<T> action)
User
public <T> T runAs(PrivilegedExceptionAction<T> action) throws IOException, InterruptedException
User
runAs
in class User
IOException
InterruptedException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.