Class SimpleAuthenticationProvider
- java.lang.Object
-
- alluxio.security.authentication.plain.SimpleAuthenticationProvider
-
- All Implemented Interfaces:
AuthenticationProvider
@ThreadSafe public final class SimpleAuthenticationProvider extends java.lang.Object implements AuthenticationProvider
An authentication provider implementation that allows arbitrary combination of username and password including empty strings.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface alluxio.security.authentication.AuthenticationProvider
AuthenticationProvider.Factory
-
-
Constructor Summary
Constructors Constructor Description SimpleAuthenticationProvider()
Constructs a newSimpleAuthenticationProvider
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
authenticate(java.lang.String user, java.lang.String password)
The authenticate method is called by thePlainSaslServerCallbackHandler
in thePlainSaslServer
layer to authenticate users for their requests.
-
-
-
Constructor Detail
-
SimpleAuthenticationProvider
public SimpleAuthenticationProvider()
Constructs a newSimpleAuthenticationProvider
.
-
-
Method Detail
-
authenticate
public void authenticate(java.lang.String user, java.lang.String password) throws javax.security.sasl.AuthenticationException
Description copied from interface:AuthenticationProvider
The authenticate method is called by thePlainSaslServerCallbackHandler
in thePlainSaslServer
layer to authenticate users for their requests. If a user is to be granted, return nothing/throw nothing. When a user is to be disallowed, throw an appropriateAuthenticationException
.- Specified by:
authenticate
in interfaceAuthenticationProvider
- Parameters:
user
- The username received over the connection requestpassword
- The password received over the connection request- Throws:
javax.security.sasl.AuthenticationException
- when a user is found to be invalid by the implementation
-
-