Top Description Fields Constructors Methods
org.apache.sshd.server.jaas

public Class JaasPasswordAuthenticator

extends AbstractLoggingBean
implements PasswordAuthenticator
Class Inheritance
All Implemented Interfaces
org.apache.sshd.server.auth.password.PasswordAuthenticator
Imports
javax.security.auth.Subject, javax.security.auth.callback.Callback, .NameCallback, .PasswordCallback, .UnsupportedCallbackException, javax.security.auth.login.LoginContext, org.apache.sshd.common.util.logging.AbstractLoggingBean, org.apache.sshd.server.auth.password.PasswordAuthenticator, org.apache.sshd.server.session.ServerSession

TODO Add javadoc
Author
Apache MINA SSHD Project

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public 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.

public String
public void
setDomain(String domain)

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

Field Detail

domainback to summary
private String domain

Constructor Detail

JaasPasswordAuthenticatorback to summary
public JaasPasswordAuthenticator()
JaasPasswordAuthenticatorback to summary
public JaasPasswordAuthenticator(String domain)

Method Detail

authenticateback to summary
public 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
getDomainback to summary
public String getDomain()
setDomainback to summary
public void setDomain(String domain)