public abstract class PasswordAuthenticationProvider extends 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(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, IOException
sessionid
- username
- password
- ipAddress
- PasswordChangeException
- throw this exception if the users password requires a changing.IOException
public abstract boolean changePassword(Connection con, String username, String oldpassword, String newpassword) throws PasswordChangeException, IOException
sessionid
- username
- oldpassword
- newpassword
- PasswordChangeException
IOException
Copyright © 2024. All rights reserved.