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 Map<Byte,SaslServerAuthenticationProvider> -
Constructor Summary
ConstructorsConstructorDescriptionSaslServerAuthenticationProviders(org.apache.hadoop.conf.Configuration conf) Creates a new instance of SaslServerAuthenticationProviders. -
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.getInstance(org.apache.hadoop.conf.Configuration conf) Deprecated.Since 2.5.14 and 2.6.4, will be removed in newer minor release lines.intReturns the number of registered providers.Extracts the SIMPLE authentication provider.static voidreset()Deprecated.Since 2.5.14 and 2.6.4, will be removed in newer minor release lines.selectProvider(byte authByte) Selects the appropriate SaslServerAuthenticationProvider from those available.
-
Field Details
-
LOG
-
EXTRA_PROVIDERS_KEY
- See Also:
-
HOLDER
-
providers
-
-
Constructor Details
-
SaslServerAuthenticationProviders
Creates a new instance of SaslServerAuthenticationProviders.- Parameters:
conf- the configuration to use for loading providers
-
-
Method Details
-
getNumRegisteredProviders
Returns the number of registered providers. -
getInstance
@Deprecated public static SaslServerAuthenticationProviders getInstance(org.apache.hadoop.conf.Configuration conf) Deprecated.Since 2.5.14 and 2.6.4, will be removed in newer minor release lines. This class should not be singleton, please do not use it any more. see HBASE-29144 for more details.Returns a singleton instance ofSaslServerAuthenticationProviders. -
reset
Deprecated.Since 2.5.14 and 2.6.4, will be removed in newer minor release lines. This class should not be singleton, please do not use it any more. see HBASE-29144 for more details.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. -
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.
-