Package org.apache.hadoop.hbase.security
Class HadoopSecurityEnabledUserProviderForTesting
java.lang.Object
org.apache.hadoop.hbase.BaseConfigurable
org.apache.hadoop.hbase.security.UserProvider
org.apache.hadoop.hbase.security.HadoopSecurityEnabledUserProviderForTesting
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
public class HadoopSecurityEnabledUserProviderForTesting
extends org.apache.hadoop.hbase.security.UserProvider
A
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.
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.security.UserProvider
groups -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanMethods inherited from class org.apache.hadoop.hbase.security.UserProvider
create, getCurrent, getCurrentUserName, getGroups, instantiate, login, login, setConf, setGroups, setUserProviderForTesting, shouldLoginFromKeytabMethods inherited from class org.apache.hadoop.hbase.BaseConfigurable
getConf
-
Constructor Details
-
HadoopSecurityEnabledUserProviderForTesting
-
-
Method Details
-
isHBaseSecurityEnabled
- Overrides:
isHBaseSecurityEnabledin classorg.apache.hadoop.hbase.security.UserProvider
-
isHadoopSecurityEnabled
- Overrides:
isHadoopSecurityEnabledin classorg.apache.hadoop.hbase.security.UserProvider
-