org.apache.sshd.server.jaas
Class JaasPasswordAuthenticator

java.lang.Object
  extended by 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

Constructor Summary
JaasPasswordAuthenticator()
           
 
Method Summary
 boolean authenticate(String username, String password)
           
 boolean authenticate(String username, String password, ServerSession session)
          Check the validity of a password.
 String getDomain()
           
 void setDomain(String domain)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaasPasswordAuthenticator

public JaasPasswordAuthenticator()
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: 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 username
password - the password
session - 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.