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

Method Summary
 boolean authenticate(String username, String password, ServerSession session)
          Check the validity of a password.
 

Method Detail

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 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.