Top Description Fields Constructors Methods
org.apache.sshd.server.auth.password

public Class StaticPasswordAuthenticator

extends AbstractLoggingBean
implements PasswordAuthenticator
Class Inheritance
All Implemented Interfaces
org.apache.sshd.server.auth.password.PasswordAuthenticator
Known Direct Subclasses
org.apache.sshd.server.auth.password.AcceptAllPasswordAuthenticator, org.apache.sshd.server.auth.password.RejectAllPasswordAuthenticator
Imports
org.apache.sshd.common.util.logging.AbstractLoggingBean, org.apache.sshd.server.session.ServerSession

Returns the same constant result true/false regardless

Field Summary

Modifier and TypeField and Description
private final boolean
Inherited from org.apache.sshd.common.util.logging.AbstractLoggingBean:
log

Constructor Summary

AccessConstructor and Description
public
StaticPasswordAuthenticator(boolean acceptance)

Method Summary

Modifier and TypeMethod and Description
public final boolean
authenticate(String
The username credential
username
,
String
The provided password
password
,
ServerSession
The ServerSession attempting the authentication
session
)

Implements org.apache.sshd.server.auth.password.PasswordAuthenticator.authenticate.

Check the validity of a password.

protected void
handleAcceptance(String username, String password, ServerSession session)

protected void
handleRejection(String username, String password, ServerSession session)

public final boolean
Inherited from org.apache.sshd.common.util.logging.AbstractLoggingBean:
debugdebugdebugdebugdebugerrorerrorerrorerrorerrorgetSimplifiedLoggerinfoinfowarnwarnwarnwarnwarnwarnwarnwarn

Field Detail

acceptanceback to summary
private final boolean acceptance

Constructor Detail

StaticPasswordAuthenticatorback to summary
public StaticPasswordAuthenticator(boolean acceptance)

Method Detail

authenticateback to summary
public final boolean authenticate(String username, String password, ServerSession session)

Implements org.apache.sshd.server.auth.password.PasswordAuthenticator.authenticate.

Doc from org.apache.sshd.server.auth.password.PasswordAuthenticator.authenticate.

Check the validity of a password.

Parameters
username:String

The username credential

password:String

The provided password

session:ServerSession

The ServerSession attempting the authentication

Returns:boolean

true indicating if authentication succeeded

Annotations
@Override
handleAcceptanceback to summary
protected void handleAcceptance(String username, String password, ServerSession session)
handleRejectionback to summary
protected void handleRejection(String username, String password, ServerSession session)
isAcceptedback to summary
public final boolean isAccepted()