org.apache.sshd.server
Interface PasswordAuthenticator
- All Known Implementing Classes:
- JaasPasswordAuthenticator, PAMPasswordAuthenticator
public interface PasswordAuthenticator
The PasswordAuthenticator
is used to authenticate
users based on a password.
- Author:
- Apache MINA SSHD Project
authenticate
boolean authenticate(String username,
String password,
ServerSession session)
- Check the validity of a password.
This method should return null if the authentication fails.
- 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.