@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, getTokenKindclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSaslAuthMethod, getTokenKindprivate 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
SaslServerAuthenticationProviderinit in interface SaslServerAuthenticationProviderIOExceptionpublic AttemptingUserProvidingSaslServer createServer(org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager, Map<String,String> saslProps) throws IOException
SaslServerAuthenticationProvidercreateServer in interface SaslServerAuthenticationProviderIOExceptionMap<String,char[]> readPasswordDB(org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionpublic boolean supportsProtocolAuthentication()
supportsProtocolAuthentication in interface SaslServerAuthenticationProviderpublic 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 SaslServerAuthenticationProviderIOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.