@InterfaceAudience.Private public final class SaslServerAuthenticationProviders extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static String | EXTRA_PROVIDERS_KEY | 
| private static AtomicReference<SaslServerAuthenticationProviders> | holder | 
| private static org.slf4j.Logger | LOG | 
| private HashMap<Byte,SaslServerAuthenticationProvider> | providers | 
| Modifier | Constructor and Description | 
|---|---|
| private  | SaslServerAuthenticationProviders(org.apache.hadoop.conf.Configuration conf,
                                 HashMap<Byte,SaslServerAuthenticationProvider> providers) | 
| Modifier and Type | Method and Description | 
|---|---|
| (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. | 
| static SaslServerAuthenticationProviders | getInstance(org.apache.hadoop.conf.Configuration conf)Returns a singleton instance of  SaslServerAuthenticationProviders. | 
| int | getNumRegisteredProviders()Returns the number of registered providers. | 
| SaslServerAuthenticationProvider | getSimpleProvider()Extracts the SIMPLE authentication provider. | 
| static void | reset()Removes the cached singleton instance of  SaslServerAuthenticationProviders. | 
| SaslServerAuthenticationProvider | selectProvider(byte authByte)Selects the appropriate SaslServerAuthenticationProvider from those available. | 
private static final org.slf4j.Logger LOG
public static final String EXTRA_PROVIDERS_KEY
private static final AtomicReference<SaslServerAuthenticationProviders> holder
private final HashMap<Byte,SaslServerAuthenticationProvider> providers
private SaslServerAuthenticationProviders(org.apache.hadoop.conf.Configuration conf, HashMap<Byte,SaslServerAuthenticationProvider> providers)
public int getNumRegisteredProviders()
public static SaslServerAuthenticationProviders getInstance(org.apache.hadoop.conf.Configuration conf)
SaslServerAuthenticationProviders.public static void reset()
SaslServerAuthenticationProviders.static void addProviderIfNotExists(SaslServerAuthenticationProvider provider, HashMap<Byte,SaslServerAuthenticationProvider> providers)
static void addExtraProviders(org.apache.hadoop.conf.Configuration conf, HashMap<Byte,SaslServerAuthenticationProvider> providers)
static SaslServerAuthenticationProviders createProviders(org.apache.hadoop.conf.Configuration conf)
public SaslServerAuthenticationProvider selectProvider(byte authByte)
authByte, this method will return null.public SaslServerAuthenticationProvider getSimpleProvider()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.