Class ShadeSaslClientAuthenticationProvider
java.lang.Object
org.apache.hadoop.hbase.security.provider.example.ShadeSaslAuthenticationProvider
org.apache.hadoop.hbase.security.provider.example.ShadeSaslClientAuthenticationProvider
- All Implemented Interfaces:
SaslAuthenticationProvider
,SaslClientAuthenticationProvider
@Private
public class ShadeSaslClientAuthenticationProvider
extends ShadeSaslAuthenticationProvider
implements SaslClientAuthenticationProvider
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.security.provider.example.ShadeSaslAuthenticationProvider
METHOD, TOKEN_KIND
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canRetry()
Returns true if the implementation is capable of performing some action which may allow a failed authentication to become a successful authentication.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 aRPCProtos.UserInformation
from the givenUserGroupInformation
Methods inherited from class org.apache.hadoop.hbase.security.provider.example.ShadeSaslAuthenticationProvider
getSaslAuthMethod, getTokenKind
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.security.provider.SaslAuthenticationProvider
getSaslAuthMethod, getTokenKind
Methods inherited from interface org.apache.hadoop.hbase.security.provider.SaslClientAuthenticationProvider
createClient, getRealUser, relogin
-
Constructor Details
-
ShadeSaslClientAuthenticationProvider
-
-
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 IOExceptionDescription copied from interface:SaslClientAuthenticationProvider
Create the SASL client instance for this authentication method.The default implementation is create a fake
SecurityInfo
and call the above method, for keeping compatible with old customized authentication method- Specified by:
createClient
in interfaceSaslClientAuthenticationProvider
- Throws:
IOException
-
getUserInfo
public org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo(User user) Description copied from interface:SaslClientAuthenticationProvider
Constructs aRPCProtos.UserInformation
from the givenUserGroupInformation
- Specified by:
getUserInfo
in interfaceSaslClientAuthenticationProvider
-
canRetry
Description copied from interface:SaslClientAuthenticationProvider
Returns true if the implementation is capable of performing some action which may allow a failed authentication to become a successful authentication. Otherwise, returns false- Specified by:
canRetry
in interfaceSaslClientAuthenticationProvider
-