@InterfaceAudience.Private public class ShadeSaslClientAuthenticationProvider extends ShadeSaslAuthenticationProvider implements SaslClientAuthenticationProvider
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ShadeSaslClientAuthenticationProvider.ShadeSaslClientCallbackHandler |
METHOD, TOKEN_KIND
Constructor and Description |
---|
ShadeSaslClientAuthenticationProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRetry()
Returns true if the implementation is capable of performing some action which may allow a
failed authentication to become a successful authentication.
|
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)
Create the SASL client instance for this authentication method.
|
org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation |
getUserInfo(User user)
Constructs a
RPCProtos.UserInformation from the given UserGroupInformation |
getSaslAuthMethod, getTokenKind
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createClient, getRealUser, relogin
getSaslAuthMethod, getTokenKind
public ShadeSaslClientAuthenticationProvider()
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
SaslClientAuthenticationProvider
The default implementation is create a fake SecurityInfo
and call the above method, for
keeping compatible with old customized authentication method
createClient
in interface SaslClientAuthenticationProvider
IOException
public org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo(User user)
SaslClientAuthenticationProvider
RPCProtos.UserInformation
from the given UserGroupInformation
getUserInfo
in interface SaslClientAuthenticationProvider
public boolean canRetry()
SaslClientAuthenticationProvider
canRetry
in interface SaslClientAuthenticationProvider
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.