Package org.apache.sshd.server.jaas
Class JaasPasswordAuthenticator
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.server.jaas.JaasPasswordAuthenticator
-
- All Implemented Interfaces:
PasswordAuthenticator
public class JaasPasswordAuthenticator extends AbstractLoggingBean implements PasswordAuthenticator
TODO Add javadoc
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
domain
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Constructor Description JaasPasswordAuthenticator()
JaasPasswordAuthenticator(java.lang.String domain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
authenticate(java.lang.String username, java.lang.String password, ServerSession session)
Check the validity of a password.java.lang.String
getDomain()
void
setDomain(java.lang.String domain)
-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
getSimplifiedLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.server.auth.password.PasswordAuthenticator
handleClientPasswordChangeRequest
-
-
-
-
Method Detail
-
getDomain
public java.lang.String getDomain()
-
setDomain
public void setDomain(java.lang.String domain)
-
authenticate
public boolean authenticate(java.lang.String username, java.lang.String password, ServerSession session)
Description copied from interface:PasswordAuthenticator
Check the validity of a password.- Specified by:
authenticate
in interfacePasswordAuthenticator
- Parameters:
username
- The username credentialpassword
- The provided passwordsession
- TheServerSession
attempting the authentication- Returns:
true
indicating if authentication succeeded
-
-