public abstract class PasswordAuthenticationProvider extends java.lang.Object implements Authenticator
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 and Description |
|---|
PasswordAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
changePassword(SshConnection con,
java.lang.String username,
java.lang.String oldpassword,
java.lang.String newpassword)
Implement this method to change the users password
|
java.lang.String |
getName() |
abstract boolean |
verifyPassword(SshConnection con,
java.lang.String username,
java.lang.String password)
Implement this method to log the user into the system.
|
public java.lang.String getName()
public abstract boolean verifyPassword(SshConnection con, java.lang.String username, java.lang.String password) throws PasswordChangeException, java.io.IOException
sessionid - username - password - ipAddress - PasswordChangeException - throw this exception if the users password requires a changing.java.io.IOExceptionpublic abstract boolean changePassword(SshConnection con, java.lang.String username, java.lang.String oldpassword, java.lang.String newpassword) throws PasswordChangeException, java.io.IOException
sessionid - username - oldpassword - newpassword - PasswordChangeExceptionjava.io.IOExceptionCopyright © 2022. All rights reserved.