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
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AtomicReference<org.apache.hadoop.security.UserGroupInformation>private static final org.slf4j.Loggerstatic final String(package private) static final charFields inherited from class org.apache.hadoop.hbase.security.provider.example.ShadeSaslAuthenticationProvider
METHOD, TOKEN_KIND -
Constructor Summary
Constructors -
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.UserGroupInformationgetAuthorizedUgi(String authzId, org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.TokenIdentifier> secretManager) voidinit(org.apache.hadoop.conf.Configuration conf) Allows implementations to initialize themselves, prior to creating a server.readPasswordDB(org.apache.hadoop.conf.Configuration conf) booleanMethods inherited from class org.apache.hadoop.hbase.security.provider.example.ShadeSaslAuthenticationProvider
getSaslAuthMethod, getTokenKindMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:SaslServerAuthenticationProviderAllows implementations to initialize themselves, prior to creating a server.- Specified by:
initin 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:SaslServerAuthenticationProviderCreates the SaslServer to accept incoming SASL authentication requests.- Specified by:
createServerin interfaceSaslServerAuthenticationProvider- Throws:
IOException
-
readPasswordDB
- Throws:
IOException
-
supportsProtocolAuthentication
- Specified by:
supportsProtocolAuthenticationin 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:
getAuthorizedUgiin interfaceSaslServerAuthenticationProvider- Throws:
IOException
-