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() |
public StaticPasswordAuthenticator(boolean acceptance)
public final boolean isAccepted()
public final boolean authenticate(String username, 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(String username, String password, ServerSession session)
protected void handleRejection(String username, String password, ServerSession session)
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.