@InterfaceAudience.Private public class ShadeSaslServerAuthenticationProvider extends ShadeSaslAuthenticationProvider implements SaslServerAuthenticationProvider
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ShadeSaslServerAuthenticationProvider.ShadeSaslServerCallbackHandler |
Modifier and Type | Field and Description |
---|---|
private AtomicReference<org.apache.hadoop.security.UserGroupInformation> |
attemptingUser |
private static org.slf4j.Logger |
LOG |
static String |
PASSWORD_FILE_KEY |
private Map<String,char[]> |
passwordDatabase |
(package private) static char |
SEPARATOR |
METHOD, TOKEN_KIND
Constructor and Description |
---|
ShadeSaslServerAuthenticationProvider() |
Modifier and Type | Method and Description |
---|---|
AttemptingUserProvidingSaslServer |
createServer(org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager,
Map<String,String> saslProps)
Creates the SaslServer to accept incoming SASL authentication requests.
|
org.apache.hadoop.security.UserGroupInformation |
getAuthorizedUgi(String authzId,
org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager) |
void |
init(org.apache.hadoop.conf.Configuration conf)
Allows implementations to initialize themselves, prior to creating a server.
|
(package private) Map<String,char[]> |
readPasswordDB(org.apache.hadoop.conf.Configuration conf) |
boolean |
supportsProtocolAuthentication() |
getSaslAuthMethod, getTokenKind
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSaslAuthMethod, getTokenKind
private static final org.slf4j.Logger LOG
public static final String PASSWORD_FILE_KEY
static final char SEPARATOR
private AtomicReference<org.apache.hadoop.security.UserGroupInformation> attemptingUser
private Map<String,char[]> passwordDatabase
public ShadeSaslServerAuthenticationProvider()
public void init(org.apache.hadoop.conf.Configuration conf) throws IOException
SaslServerAuthenticationProvider
init
in interface SaslServerAuthenticationProvider
IOException
public AttemptingUserProvidingSaslServer createServer(org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager, Map<String,String> saslProps) throws IOException
SaslServerAuthenticationProvider
createServer
in interface SaslServerAuthenticationProvider
IOException
Map<String,char[]> readPasswordDB(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public boolean supportsProtocolAuthentication()
supportsProtocolAuthentication
in interface 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 SaslServerAuthenticationProvider
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.