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
Nested ClassesModifier and TypeClassDescriptionprivate classPulls 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_METHODFields inherited from class org.apache.hadoop.hbase.security.provider.AbstractSaslClientAuthenticationProvider
AUTH_TOKEN_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.security.provider.AttemptingUserProvidingSaslServercreateServer(org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager, Map<String, String> saslProps) org.apache.hadoop.security.UserGroupInformationgetAuthorizedUgi(String authzId, org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager) booleanMethods inherited from class org.apache.hadoop.hbase.security.provider.CustomSaslAuthenticationProviderTestBase.InMemoryClientProvider
createClient, findToken, getSaslAuthMethod, getUserInfoMethods inherited from class org.apache.hadoop.hbase.security.provider.AbstractSaslClientAuthenticationProvider
equals, getTokenKind, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.security.provider.SaslAuthenticationProvider
getSaslAuthMethod, getTokenKindMethods inherited from interface org.apache.hadoop.hbase.security.provider.SaslClientAuthenticationProvider
canRetry, createClient, getRealUser, reloginMethods 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:
createServerin interfaceorg.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProvider- Throws:
IOException
-
supportsProtocolAuthentication
- Specified by:
supportsProtocolAuthenticationin 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:
getAuthorizedUgiin interfaceorg.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProvider- Throws:
IOException
-