Class SaslServerAuthenticationProviders
java.lang.Object
org.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProviders
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate static final AtomicReference<SaslServerAuthenticationProviders>private static final org.slf4j.Loggerprivate final HashMap<Byte,SaslServerAuthenticationProvider> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSaslServerAuthenticationProviders(org.apache.hadoop.conf.Configuration conf, HashMap<Byte, SaslServerAuthenticationProvider> providers) -
Method Summary
Modifier and TypeMethodDescription(package private) static voidaddExtraProviders(org.apache.hadoop.conf.Configuration conf, HashMap<Byte, SaslServerAuthenticationProvider> providers) Adds any providers defined in the configuration.(package private) static voidaddProviderIfNotExists(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 SaslServerAuthenticationProviderscreateProviders(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.intReturns the number of registered providers.Extracts the SIMPLE authentication provider.static voidreset()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.
-