org.apache.sshd.server.pam
Class PAMPasswordAuthenticator

java.lang.Object
  extended by org.apache.sshd.server.pam.PAMPasswordAuthenticator
All Implemented Interfaces:
PasswordAuthenticator

public class PAMPasswordAuthenticator
extends Object
implements PasswordAuthenticator

A password authenticator using PAM (Pluggable Authentication Module). Such an authenticator can be used to integrate into an Unix operating system.

Author:
Apache MINA SSHD Project

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

Constructor Detail

PAMPasswordAuthenticator

public PAMPasswordAuthenticator()
Method Detail

getService

public String getService()

setService

public void setService(String service)

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


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.