com.maverick.sshd.platform
Interface AuthenticationProvider


public interface AuthenticationProvider

Implement this interface to customize the authentication of users logging into your server. To install your provider you must configure the servers ConfigurationContext within the servers configure method.

This interface has been updated to include session id in all method calls to make it more consistent.

Author:
Lee David Painter

Method Summary
 boolean changePassword(Connection con, java.lang.String username, java.lang.String oldpassword, java.lang.String newpassword)
          Implement this method to change the users password
 void endSession(Connection con)
           
 java.lang.String getGroup(Connection con)
          Get the primary group for a user
 java.lang.String getHomeDirectory(Connection con)
          Get a users home directory.
 void startSession(Connection con)
          New methods
 boolean verifyPassword(Connection con, java.lang.String username, java.lang.String password, java.net.SocketAddress ipAddress)
          Implement this method to log the user into the system.
 

Method Detail

verifyPassword

boolean verifyPassword(Connection con,
                       java.lang.String username,
                       java.lang.String password,
                       java.net.SocketAddress ipAddress)
                       throws PasswordChangeException
Implement this method to log the user into the system.

Parameters:
sessionid -
username -
password -
ipAddress -
Returns:
boolean
Throws:
PasswordChangeException - throw this exception if the users password requires a changing.

getGroup

java.lang.String getGroup(Connection con)
Get the primary group for a user

Parameters:
username -
Returns:

getHomeDirectory

java.lang.String getHomeDirectory(Connection con)
Get a users home directory.

Parameters:
username -
Returns:

changePassword

boolean changePassword(Connection con,
                       java.lang.String username,
                       java.lang.String oldpassword,
                       java.lang.String newpassword)
                       throws PasswordChangeException
Implement this method to change the users password

Parameters:
sessionid -
username -
oldpassword -
newpassword -
Returns:
boolean
Throws:
PasswordChangeException

startSession

void startSession(Connection con)
New methods


endSession

void endSession(Connection con)


Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.