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 SummaryNested ClassesModifier and TypeClassDescription(package private) static class
- 
Field SummaryFields inherited from class org.apache.hadoop.hbase.security.provider.example.ShadeSaslAuthenticationProviderMETHOD, TOKEN_KIND
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanRetry()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.UserInformationgetUserInfo(User user) Constructs aRPCProtos.UserInformationfrom the givenUserGroupInformationMethods inherited from class org.apache.hadoop.hbase.security.provider.example.ShadeSaslAuthenticationProvidergetSaslAuthMethod, getTokenKindMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.security.provider.SaslAuthenticationProvidergetSaslAuthMethod, getTokenKindMethods inherited from interface org.apache.hadoop.hbase.security.provider.SaslClientAuthenticationProvidercreateClient, getRealUser, relogin
- 
Constructor Details- 
ShadeSaslClientAuthenticationProvider
 
- 
- 
Method Details- 
createClientpublic 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:SaslClientAuthenticationProviderCreate the SASL client instance for this authentication method.The default implementation is create a fake SecurityInfoand call the above method, for keeping compatible with old customized authentication method- Specified by:
- createClientin interface- SaslClientAuthenticationProvider
- Throws:
- IOException
 
- 
getUserInfopublic org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo(User user) Description copied from interface:SaslClientAuthenticationProviderConstructs aRPCProtos.UserInformationfrom the givenUserGroupInformation- Specified by:
- getUserInfoin interface- SaslClientAuthenticationProvider
 
- 
canRetryDescription copied from interface:SaslClientAuthenticationProviderReturns 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:
- canRetryin interface- SaslClientAuthenticationProvider
 
 
-