public static class CustomSaslAuthenticationProviderTestBase.InMemoryClientProvider extends org.apache.hadoop.hbase.security.provider.AbstractSaslClientAuthenticationProvider
Modifier and Type | Class and Description |
---|---|
class |
CustomSaslAuthenticationProviderTestBase.InMemoryClientProvider.InMemoryClientProviderCallbackHandler
Sasl CallbackHandler which extracts information from our custom token and places it into the
Sasl objects.
|
Modifier and Type | Field and Description |
---|---|
static String |
MECHANISM |
static org.apache.hadoop.hbase.security.provider.SaslAuthMethod |
SASL_AUTH_METHOD |
Constructor and Description |
---|
InMemoryClientProvider() |
Modifier and Type | Method and Description |
---|---|
SaslClient |
createClient(org.apache.hadoop.conf.Configuration conf,
InetAddress serverAddr,
org.apache.hadoop.hbase.security.SecurityInfo securityInfo,
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 |
getSaslAuthMethod() |
org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation |
getUserInfo(org.apache.hadoop.hbase.security.User user) |
equals, getTokenKind, hashCode
public static final String MECHANISM
public static final org.apache.hadoop.hbase.security.provider.SaslAuthMethod SASL_AUTH_METHOD
public InMemoryClientProvider()
public SaslClient createClient(org.apache.hadoop.conf.Configuration conf, InetAddress serverAddr, org.apache.hadoop.hbase.security.SecurityInfo securityInfo, org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, boolean fallbackAllowed, Map<String,String> saslProps) throws IOException
IOException
public Optional<org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier>> findToken(org.apache.hadoop.hbase.security.User user)
public org.apache.hadoop.hbase.security.provider.SaslAuthMethod getSaslAuthMethod()
public org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo(org.apache.hadoop.hbase.security.User user)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.