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.

  • Constructor Details

  • Method Details

    • isHBaseSecurityEnabled

      public boolean isHBaseSecurityEnabled()
      Overrides:
      isHBaseSecurityEnabled in class org.apache.hadoop.hbase.security.UserProvider
    • isHadoopSecurityEnabled

      public boolean isHadoopSecurityEnabled()
      Overrides:
      isHadoopSecurityEnabled in class org.apache.hadoop.hbase.security.UserProvider