public static class TestCustomSaslAuthenticationProvider.InMemoryServerProvider extends TestCustomSaslAuthenticationProvider.InMemoryClientProvider implements org.apache.hadoop.hbase.security.provider.SaslServerAuthenticationProvider
Modifier and Type | Class and Description |
---|---|
private class |
TestCustomSaslAuthenticationProvider.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.
|
TestCustomSaslAuthenticationProvider.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–2021 The Apache Software Foundation. All rights reserved.