org.apache.sshd.server.jaas
Class JaasPasswordAuthenticator
java.lang.Object
org.apache.sshd.server.jaas.JaasPasswordAuthenticator
- All Implemented Interfaces:
- PasswordAuthenticator
public class JaasPasswordAuthenticator
- extends Object
- implements PasswordAuthenticator
TODO Add javadoc
- Author:
- Apache MINA SSHD Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JaasPasswordAuthenticator
public JaasPasswordAuthenticator()
getDomain
public String getDomain()
setDomain
public void setDomain(String domain)
authenticate
public boolean authenticate(String username,
String password,
ServerSession session)
- Description copied from interface:
PasswordAuthenticator
- Check the validity of a password.
This method should return null if the authentication fails.
- Specified by:
authenticate
in interface PasswordAuthenticator
- Parameters:
username
- the usernamepassword
- the passwordsession
- the server session
- Returns:
- a boolean indicating if authentication succeeded or not
authenticate
public boolean authenticate(String username,
String password)
Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.