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

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
    Sasl CallbackHandler which extracts information from our custom token and places it into the Sasl objects.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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

  • Constructor Details

  • 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

      public Optional<org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier>> findToken(org.apache.hadoop.hbase.security.User user)
    • getSaslAuthMethod

      public org.apache.hadoop.hbase.security.provider.SaslAuthMethod getSaslAuthMethod()
    • getUserInfo

      public org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.UserInformation getUserInfo(org.apache.hadoop.hbase.security.User user)