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- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Constructor Description JaasPasswordAuthenticator()JaasPasswordAuthenticator(String domain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthenticate(String username, String password, ServerSession session)Check the validity of a password.StringgetDomain()voidsetDomain(String domain)-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
-
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
-
-
-
-
Constructor Detail
-
JaasPasswordAuthenticator
public JaasPasswordAuthenticator()
-
JaasPasswordAuthenticator
public JaasPasswordAuthenticator(String domain)
-
-
Method Detail
-
getDomain
public String getDomain()
-
setDomain
public void setDomain(String domain)
-
authenticate
public boolean authenticate(String username, String password, ServerSession session)
Description copied from interface:PasswordAuthenticatorCheck the validity of a password.- Specified by:
authenticatein interfacePasswordAuthenticator- Parameters:
username- The username credentialpassword- The provided passwordsession- TheServerSessionattempting the authentication- Returns:
trueindicating if authentication succeeded
-
-