Class CustomSaslAuthenticationProviderTestBase.InMemoryServerProvider
java.lang.Object
org.apache.hadoop.hbase.security.provider.AbstractSaslClientAuthenticationProvider
org.apache.hadoop.hbase.security.provider.CustomSaslAuthenticationProviderTestBase.InMemoryClientProvider
org.apache.hadoop.hbase.security.provider.CustomSaslAuthenticationProviderTestBase.InMemoryServerProvider
- All Implemented Interfaces:
org.apache.hadoop.hbase.security.provider.SaslAuthenticationProvider
,org.apache.hadoop.hbase.security.provider.SaslClientAuthenticationProvider
,org.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProvider
- Enclosing class:
- CustomSaslAuthenticationProviderTestBase
public static class CustomSaslAuthenticationProviderTestBase.InMemoryServerProvider
extends CustomSaslAuthenticationProviderTestBase.InMemoryClientProvider
implements org.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProvider
Server provider which validates credentials from an in-memory database.
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
Pulls the correct password for the user who started the SASL handshake so that SASL can validate that the user provided the right password.Nested classes/interfaces inherited from class org.apache.hadoop.hbase.security.provider.CustomSaslAuthenticationProviderTestBase.InMemoryClientProvider
CustomSaslAuthenticationProviderTestBase.InMemoryClientProvider.InMemoryClientProviderCallbackHandler
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.security.provider.CustomSaslAuthenticationProviderTestBase.InMemoryClientProvider
MECHANISM, SASL_AUTH_METHOD
Fields inherited from class org.apache.hadoop.hbase.security.provider.AbstractSaslClientAuthenticationProvider
AUTH_TOKEN_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.security.provider.AttemptingUserProvidingSaslServer
createServer
(org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager, Map<String, String> saslProps) org.apache.hadoop.security.UserGroupInformation
getAuthorizedUgi
(String authzId, org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager) boolean
Methods inherited from class org.apache.hadoop.hbase.security.provider.CustomSaslAuthenticationProviderTestBase.InMemoryClientProvider
createClient, findToken, getSaslAuthMethod, getUserInfo
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.SaslAuthenticationProvider
getSaslAuthMethod, getTokenKind
Methods inherited from interface org.apache.hadoop.hbase.security.provider.SaslClientAuthenticationProvider
canRetry, createClient, getRealUser, relogin
Methods inherited from interface org.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProvider
init
-
Constructor Details
-
InMemoryServerProvider
public InMemoryServerProvider()
-
-
Method Details
-
createServer
public org.apache.hadoop.hbase.security.provider.AttemptingUserProvidingSaslServer createServer(org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager, Map<String, String> saslProps) throws IOException- Specified by:
createServer
in interfaceorg.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProvider
- Throws:
IOException
-
supportsProtocolAuthentication
- Specified by:
supportsProtocolAuthentication
in interfaceorg.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProvider
-
getAuthorizedUgi
public org.apache.hadoop.security.UserGroupInformation getAuthorizedUgi(String authzId, org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager) throws IOException - Specified by:
getAuthorizedUgi
in interfaceorg.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProvider
- Throws:
IOException
-