public class StaticPasswordAuthenticator extends AbstractLoggingBean implements PasswordAuthenticator
true/false regardless| Modifier and Type | Field and Description |
|---|---|
private boolean |
acceptance |
log| Constructor and Description |
|---|
StaticPasswordAuthenticator(boolean acceptance) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(java.lang.String username,
java.lang.String password,
ServerSession session)
Check the validity of a password.
|
protected void |
handleAcceptance(java.lang.String username,
java.lang.String password,
ServerSession session) |
protected void |
handleRejection(java.lang.String username,
java.lang.String password,
ServerSession session) |
boolean |
isAccepted() |
getSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleClientPasswordChangeRequestpublic StaticPasswordAuthenticator(boolean acceptance)
public final boolean isAccepted()
public final boolean authenticate(java.lang.String username,
java.lang.String password,
ServerSession session)
PasswordAuthenticatorauthenticate in interface PasswordAuthenticatorusername - The username credentialpassword - The provided passwordsession - The ServerSession attempting the authenticationtrue indicating if authentication succeededprotected void handleAcceptance(java.lang.String username,
java.lang.String password,
ServerSession session)
protected void handleRejection(java.lang.String username,
java.lang.String password,
ServerSession session)