Class ShadeSaslServerAuthenticationProvider
java.lang.Object
org.apache.hadoop.hbase.security.provider.example.ShadeSaslAuthenticationProvider
org.apache.hadoop.hbase.security.provider.example.ShadeSaslServerAuthenticationProvider
- All Implemented Interfaces:
SaslAuthenticationProvider
,SaslServerAuthenticationProvider
@Private
public class ShadeSaslServerAuthenticationProvider
extends ShadeSaslAuthenticationProvider
implements SaslServerAuthenticationProvider
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate AtomicReference<org.apache.hadoop.security.UserGroupInformation>
private static final org.slf4j.Logger
static final String
(package private) static final char
Fields inherited from class org.apache.hadoop.hbase.security.provider.example.ShadeSaslAuthenticationProvider
METHOD, TOKEN_KIND
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateServer
(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.readPasswordDB
(org.apache.hadoop.conf.Configuration conf) boolean
Methods inherited from class org.apache.hadoop.hbase.security.provider.example.ShadeSaslAuthenticationProvider
getSaslAuthMethod, getTokenKind
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.security.provider.SaslAuthenticationProvider
getSaslAuthMethod, getTokenKind
-
Field Details
-
LOG
-
PASSWORD_FILE_KEY
- See Also:
-
SEPARATOR
- See Also:
-
attemptingUser
-
passwordDatabase
-
-
Constructor Details
-
ShadeSaslServerAuthenticationProvider
-
-
Method Details
-
init
Description copied from interface:SaslServerAuthenticationProvider
Allows implementations to initialize themselves, prior to creating a server.- Specified by:
init
in interfaceSaslServerAuthenticationProvider
- Throws:
IOException
-
createServer
public AttemptingUserProvidingSaslServer createServer(org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager, Map<String, String> saslProps) throws IOExceptionDescription copied from interface:SaslServerAuthenticationProvider
Creates the SaslServer to accept incoming SASL authentication requests.- Specified by:
createServer
in interfaceSaslServerAuthenticationProvider
- Throws:
IOException
-
readPasswordDB
- Throws:
IOException
-
supportsProtocolAuthentication
- Specified by:
supportsProtocolAuthentication
in interfaceSaslServerAuthenticationProvider
-
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:
getAuthorizedUgi
in interfaceSaslServerAuthenticationProvider
- Throws:
IOException
-