public class StaticPasswordAuthenticator extends AbstractLoggingBean implements PasswordAuthenticator
true/false
regardlessModifier 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() |
getSimplifiedLogger
public StaticPasswordAuthenticator(boolean acceptance)
public final boolean isAccepted()
public final boolean authenticate(java.lang.String username, java.lang.String password, ServerSession session)
PasswordAuthenticator
authenticate
in interface PasswordAuthenticator
username
- 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)