@FunctionalInterface
public interface PasswordAuthenticator
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(java.lang.String username,
java.lang.String password,
ServerSession session)
Check the validity of a password.
|
boolean authenticate(java.lang.String username,
java.lang.String password,
ServerSession session)
throws PasswordChangeRequiredException,
AsyncAuthException
username - The username credentialpassword - The provided passwordsession - The ServerSession attempting the authenticationtrue indicating if authentication succeededPasswordChangeRequiredException - If the password is expired or
not strong enough to suit the server's policyAsyncAuthException - If the authentication is performed asynchronously