public class InMemoryPasswordAuthenticator extends PasswordAuthenticationProvider
Constructor and Description |
---|
InMemoryPasswordAuthenticator() |
Modifier and Type | Method and Description |
---|---|
InMemoryPasswordAuthenticator |
addUser(String username,
String password) |
Authenticator |
addUserHash(String hash) |
boolean |
changePassword(Connection con,
String username,
String oldpassword,
String newpassword)
Implement this method to change the users password
|
boolean |
verifyPassword(Connection con,
String username,
String password)
Implement this method to log the user into the system.
|
getName
public InMemoryPasswordAuthenticator addUser(String username, String password)
public boolean verifyPassword(Connection con, String username, String password) throws PasswordChangeException, IOException
PasswordAuthenticationProvider
verifyPassword
in class PasswordAuthenticationProvider
PasswordChangeException
- throw this exception if the users password requires a changing.IOException
public boolean changePassword(Connection con, String username, String oldpassword, String newpassword) throws PasswordChangeException, IOException
PasswordAuthenticationProvider
changePassword
in class PasswordAuthenticationProvider
PasswordChangeException
IOException
public Authenticator addUserHash(String hash)
Copyright © 2024. All rights reserved.