public static class CustomSaslAuthenticationProviderTestBase.InMemoryServerProvider extends CustomSaslAuthenticationProviderTestBase.InMemoryClientProvider implements org.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProvider
Modifier and Type | Class and Description |
---|---|
private class |
CustomSaslAuthenticationProviderTestBase.InMemoryServerProvider.InMemoryServerProviderCallbackHandler
Pulls the correct password for the user who started the SASL handshake so that SASL can
validate that the user provided the right password.
|
CustomSaslAuthenticationProviderTestBase.InMemoryClientProvider.InMemoryClientProviderCallbackHandler
MECHANISM, SASL_AUTH_METHOD
Constructor and Description |
---|
InMemoryServerProvider() |
Modifier and Type | Method and Description |
---|---|
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) |
org.apache.hadoop.security.UserGroupInformation |
getAuthorizedUgi(String authzId,
org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager) |
boolean |
supportsProtocolAuthentication() |
createClient, findToken, getSaslAuthMethod, getUserInfo
equals, getTokenKind, hashCode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
init
public InMemoryServerProvider()
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
createServer
in interface org.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProvider
IOException
public boolean supportsProtocolAuthentication()
supportsProtocolAuthentication
in interface org.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProvider
public org.apache.hadoop.security.UserGroupInformation getAuthorizedUgi(String authzId, org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager) throws IOException
getAuthorizedUgi
in interface org.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProvider
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.