org.apache.sshd.server.pam
Class PAMPasswordAuthenticator
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PAMPasswordAuthenticator
public PAMPasswordAuthenticator()
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 usernamepassword
- the passwordsession
- the server session
- Returns:
- a boolean indicating if authentication succeeded or not
Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.