Package alluxio.security.authentication
Interface AuthenticationProvider
-
- All Known Implementing Classes:
CustomAuthenticationProvider
,SimpleAuthenticationProvider
public interface AuthenticationProvider
Abstraction for an authentication provider at SASL server forAuthType.SIMPLE
andAuthType.CUSTOM
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AuthenticationProvider.Factory
Factory forAuthenticationProvider
.
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
authenticate
void authenticate(java.lang.String user, java.lang.String password) throws javax.security.sasl.AuthenticationException
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
.- 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
-
-