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() |
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleClientPasswordChangeRequest
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–2024 The Apache Software Foundation. All rights reserved.