Class ShadeProviderSelector
java.lang.Object
org.apache.hadoop.hbase.security.provider.BuiltInProviderSelector
org.apache.hadoop.hbase.security.provider.example.ShadeProviderSelector
- All Implemented Interfaces:
AuthenticationProviderSelector
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.apache.hadoop.io.Text
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(org.apache.hadoop.conf.Configuration conf, Collection<SaslClientAuthenticationProvider> providers) 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 viaAuthenticationProviderSelector.configure(Configuration, Collection)
.
-
Field Details
-
SHADE_TOKEN_KIND_TEXT
-
shade
-
-
Constructor Details
-
ShadeProviderSelector
public ShadeProviderSelector()
-
-
Method Details
-
configure
public void configure(org.apache.hadoop.conf.Configuration conf, Collection<SaslClientAuthenticationProvider> providers) Description copied from interface:AuthenticationProviderSelector
Initializes the implementation with configuration and a set of providers available. This method should be called exactly once per implementation prior to callingAuthenticationProviderSelector.selectProvider(String, User)
.- Specified by:
configure
in interfaceAuthenticationProviderSelector
- Overrides:
configure
in classBuiltInProviderSelector
-
selectProvider
public Pair<SaslClientAuthenticationProvider,org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier>> selectProvider(String clusterId, User user) Description copied from interface:AuthenticationProviderSelector
Chooses the authentication provider which should be used given the provided client context from the authentication providers passed in viaAuthenticationProviderSelector.configure(Configuration, Collection)
.- Specified by:
selectProvider
in interfaceAuthenticationProviderSelector
- Overrides:
selectProvider
in classBuiltInProviderSelector
-