public abstract class PasswordAuthenticationProvider extends Object implements 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.
| Constructor and Description |
|---|
PasswordAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 - PasswordChangeExceptionCopyright © 2012. All Rights Reserved.