Class CustomSaslAuthenticationProviderTestBase.InMemoryClientProvider
java.lang.Object
org.apache.hadoop.hbase.security.provider.AbstractSaslClientAuthenticationProvider
org.apache.hadoop.hbase.security.provider.CustomSaslAuthenticationProviderTestBase.InMemoryClientProvider
- All Implemented Interfaces:
org.apache.hadoop.hbase.security.provider.SaslAuthenticationProvider
,org.apache.hadoop.hbase.security.provider.SaslClientAuthenticationProvider
- Direct Known Subclasses:
CustomSaslAuthenticationProviderTestBase.InMemoryServerProvider
- Enclosing class:
- CustomSaslAuthenticationProviderTestBase
public static class CustomSaslAuthenticationProviderTestBase.InMemoryClientProvider
extends org.apache.hadoop.hbase.security.provider.AbstractSaslClientAuthenticationProvider
Client provider that finds custom Token in the user's UGI and authenticates with the server via
DIGEST-MD5 using that password.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Sasl CallbackHandler which extracts information from our custom token and places it into the Sasl objects. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final org.apache.hadoop.hbase.security.provider.SaslAuthMethod
Fields inherited from class org.apache.hadoop.hbase.security.provider.AbstractSaslClientAuthenticationProvider
AUTH_TOKEN_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateClient
(org.apache.hadoop.conf.Configuration conf, InetAddress serverAddr, String serverPrincipal, org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, boolean fallbackAllowed, Map<String, String> saslProps) Optional<org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier>>
findToken
(org.apache.hadoop.hbase.security.User user) org.apache.hadoop.hbase.security.provider.SaslAuthMethod
org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation
getUserInfo
(org.apache.hadoop.hbase.security.User user) Methods inherited from class org.apache.hadoop.hbase.security.provider.AbstractSaslClientAuthenticationProvider
equals, getTokenKind, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.security.provider.SaslClientAuthenticationProvider
canRetry, createClient, getRealUser, relogin
-
Field Details
-
MECHANISM
- See Also:
-
SASL_AUTH_METHOD
-
-
Constructor Details
-
InMemoryClientProvider
public InMemoryClientProvider()
-
-
Method Details
-
createClient
public SaslClient createClient(org.apache.hadoop.conf.Configuration conf, InetAddress serverAddr, String serverPrincipal, org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, boolean fallbackAllowed, Map<String, String> saslProps) throws IOException- Throws:
IOException
-
findToken
-
getSaslAuthMethod
-
getUserInfo
public org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo(org.apache.hadoop.hbase.security.User user)
-