@InterfaceAudience.LimitedPrivate(value="Authentication") @InterfaceStability.Evolving public final class SaslClientAuthenticationProviders extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EXTRA_PROVIDERS_KEY |
static String |
SELECTOR_KEY |
Modifier and Type | Method and Description |
---|---|
static SaslClientAuthenticationProviders |
getInstance(org.apache.hadoop.conf.Configuration conf)
Returns a singleton instance of
SaslClientAuthenticationProviders . |
int |
getNumRegisteredProviders()
Returns the number of providers that have been registered.
|
Pair<SaslClientAuthenticationProvider,org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier>> |
getSimpleProvider()
Returns the provider and token pair for SIMPLE authentication.
|
static void |
reset()
Removes the cached singleton instance of
SaslClientAuthenticationProviders . |
Pair<SaslClientAuthenticationProvider,org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier>> |
selectProvider(String clusterId,
User clientUser)
Chooses the best authentication provider and corresponding token given the HBase cluster
identifier and the user.
|
String |
toString() |
public static final String SELECTOR_KEY
public static final String EXTRA_PROVIDERS_KEY
public int getNumRegisteredProviders()
public static SaslClientAuthenticationProviders getInstance(org.apache.hadoop.conf.Configuration conf)
SaslClientAuthenticationProviders
.public static void reset()
SaslClientAuthenticationProviders
.public Pair<SaslClientAuthenticationProvider,org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier>> getSimpleProvider()
public Pair<SaslClientAuthenticationProvider,org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier>> selectProvider(String clusterId, User clientUser)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.