|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.sshd.PasswordAuthenticationProvider
public abstract class PasswordAuthenticationProvider
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.
| Constructor Summary | |
|---|---|
PasswordAuthenticationProvider()
|
|
| Method Summary | |
|---|---|
abstract boolean |
changePassword(Connection con,
String username,
String oldpassword,
String newpassword)
Implement this method to change the users password |
String |
getName()
|
abstract boolean |
verifyPassword(Connection con,
String username,
String password)
Implement this method to log the user into the system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PasswordAuthenticationProvider()
| Method Detail |
|---|
public String getName()
public abstract boolean verifyPassword(Connection con,
String username,
String password)
throws PasswordChangeException
sessionid - username - password - ipAddress -
PasswordChangeException - throw this exception if the users password requires a changing.
public abstract boolean changePassword(Connection con,
String username,
String oldpassword,
String newpassword)
throws PasswordChangeException
sessionid - username - oldpassword - newpassword -
PasswordChangeException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||