public class UserDB extends Object
A class used to change the password of the user and to enforce the password policy.
The logic checks which are done here according to password policy are:
| Constructor and Description |
|---|
UserDB() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getError() |
String |
getName() |
List<String> |
getPasswords(Long anUserId)
This method checks the database for the last passwords and if meets the rule,changes the password.
|
UserIntf |
getUser() |
UserIntf |
getUserIntf() |
UserIntf |
getUserIntf(Long anUserId) |
Principal |
getUserPrincipal() |
int |
hashCode() |
void |
init(String aDatabasePoolName,
UserIntf anUser) |
void |
save() |
void |
setUser(UserIntf anUser) |
void |
setUserData(String aLoginId) |
int |
updatePasswordHistory(Long anUserId,
String aNewPassword) |
public UserIntf getUser()
public void setUser(UserIntf anUser)
public Principal getUserPrincipal()
public UserIntf getUserIntf()
public List<String> getPasswords(Long anUserId) throws Exception
anUserId - New password of the userException - expublic int updatePasswordHistory(Long anUserId, String aNewPassword) throws Exception
Exceptionpublic String getName()
public static int getError()
Copyright © 2020. All rights reserved.