public class HadoopSecurityEnabledUserProviderForTesting extends org.apache.hadoop.hbase.security.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() |
public HadoopSecurityEnabledUserProviderForTesting()
public boolean isHBaseSecurityEnabled()
isHBaseSecurityEnabled in class org.apache.hadoop.hbase.security.UserProviderpublic boolean isHadoopSecurityEnabled()
isHadoopSecurityEnabled in class org.apache.hadoop.hbase.security.UserProviderCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.