public class HadoopSecurityEnabledUserProviderForTesting extends UserProvider
UserProvider that always says hadoop security is enabled, regardless of the underlying
configuration. HBase security is not enabled as this is used to determine if SASL is used
to do the authentication, which requires a Kerberos ticket (which we currently don't have in
tests).
This should only be used for TESTING.
| Constructor and Description |
|---|
HadoopSecurityEnabledUserProviderForTesting() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isHadoopSecurityEnabled() |
boolean |
isHBaseSecurityEnabled() |
create, getCurrent, getCurrentUserName, instantiate, login, setUserProviderForTestinggetConf, setConfpublic HadoopSecurityEnabledUserProviderForTesting()
public boolean isHBaseSecurityEnabled()
isHBaseSecurityEnabled in class UserProviderpublic boolean isHadoopSecurityEnabled()
isHadoopSecurityEnabled in class UserProviderfalse. For secure Hadoop, it will return the value
from UserGroupInformation.isSecurityEnabled().