Interface AuthenticationProviderSelector
- All Known Implementing Classes:
BuiltInProviderSelector,ShadeProviderSelector
-
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(org.apache.hadoop.conf.Configuration conf, Collection<SaslClientAuthenticationProvider> availableProviders) Initializes the implementation with configuration and a set of providers available.Pair<SaslClientAuthenticationProvider,org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier>> selectProvider(String clusterId, User user) Chooses the authentication provider which should be used given the provided client context from the authentication providers passed in viaconfigure(Configuration, Collection).
-
Method Details
-
configure
void configure(org.apache.hadoop.conf.Configuration conf, Collection<SaslClientAuthenticationProvider> availableProviders) Initializes the implementation with configuration and a set of providers available. This method should be called exactly once per implementation prior to callingselectProvider(String, User). -
selectProvider
Pair<SaslClientAuthenticationProvider,org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier>> selectProvider(String clusterId, User user) Chooses the authentication provider which should be used given the provided client context from the authentication providers passed in viaconfigure(Configuration, Collection).
-