public class StaticPasswordAuthenticator extends AbstractLoggingBean implements PasswordAuthenticator
true/false regardlesslog| Constructor and Description |
|---|
StaticPasswordAuthenticator(boolean acceptance) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String username,
String password,
ServerSession session)
Check the validity of a password.
|
protected void |
handleAcceptance(String username,
String password,
ServerSession session) |
protected void |
handleRejection(String username,
String password,
ServerSession session) |
boolean |
isAccepted() |
getSimplifiedLoggerpublic StaticPasswordAuthenticator(boolean acceptance)
public final boolean isAccepted()
public final boolean authenticate(String username, 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(String username, String password, ServerSession session)
protected void handleRejection(String username, String password, ServerSession session)
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.