Class SaslServerAuthenticationProviders
java.lang.Object
org.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProviders
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
private static final AtomicReference<SaslServerAuthenticationProviders>
private static final org.slf4j.Logger
private final HashMap<Byte,
SaslServerAuthenticationProvider> -
Constructor Summary
ModifierConstructorDescriptionprivate
SaslServerAuthenticationProviders
(org.apache.hadoop.conf.Configuration conf, HashMap<Byte, SaslServerAuthenticationProvider> providers) -
Method Summary
Modifier and TypeMethodDescription(package private) static void
addExtraProviders
(org.apache.hadoop.conf.Configuration conf, HashMap<Byte, SaslServerAuthenticationProvider> providers) Adds any providers defined in the configuration.(package private) static void
addProviderIfNotExists
(SaslServerAuthenticationProvider provider, HashMap<Byte, SaslServerAuthenticationProvider> providers) Adds the given provider into the map of providers if a mapping for the auth code does not already exist in the map.(package private) static SaslServerAuthenticationProviders
createProviders
(org.apache.hadoop.conf.Configuration conf) Loads server authentication providers from the classpath and configuration, and then creates the SaslServerAuthenticationProviders instance.getInstance
(org.apache.hadoop.conf.Configuration conf) Returns a singleton instance ofSaslServerAuthenticationProviders
.int
Returns the number of registered providers.Extracts the SIMPLE authentication provider.static void
reset()
Removes the cached singleton instance ofSaslServerAuthenticationProviders
.selectProvider
(byte authByte) Selects the appropriate SaslServerAuthenticationProvider from those available.
-
Field Details
-
LOG
-
EXTRA_PROVIDERS_KEY
- See Also:
-
holder
-
providers
-
-
Constructor Details
-
SaslServerAuthenticationProviders
private SaslServerAuthenticationProviders(org.apache.hadoop.conf.Configuration conf, HashMap<Byte, SaslServerAuthenticationProvider> providers)
-
-
Method Details
-
getNumRegisteredProviders
Returns the number of registered providers. -
getInstance
public static SaslServerAuthenticationProviders getInstance(org.apache.hadoop.conf.Configuration conf) Returns a singleton instance ofSaslServerAuthenticationProviders
. -
reset
Removes the cached singleton instance ofSaslServerAuthenticationProviders
. -
addProviderIfNotExists
static void addProviderIfNotExists(SaslServerAuthenticationProvider provider, HashMap<Byte, SaslServerAuthenticationProvider> providers) Adds the given provider into the map of providers if a mapping for the auth code does not already exist in the map. -
addExtraProviders
static void addExtraProviders(org.apache.hadoop.conf.Configuration conf, HashMap<Byte, SaslServerAuthenticationProvider> providers) Adds any providers defined in the configuration. -
createProviders
Loads server authentication providers from the classpath and configuration, and then creates the SaslServerAuthenticationProviders instance. -
selectProvider
Selects the appropriate SaslServerAuthenticationProvider from those available. If there is no matching provider for the givenauthByte
, this method will return null. -
getSimpleProvider
Extracts the SIMPLE authentication provider.
-