Package sk.iway.iwcm.users
Class PasswordsHistoryBean
java.lang.Object
sk.iway.iwcm.database.ActiveRecordBase
sk.iway.iwcm.database.ActiveRecord
sk.iway.iwcm.users.PasswordsHistoryBean
- All Implemented Interfaces:
Serializable
#23471 - Password security - pri zmene hesla sa musi kontrolovat, ci heslo nie je v historii pouzitych hesiel usera.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getId()
int
getSalt()
int
static PasswordsHistoryBean
insertAndSaveNew
(int userId, String hash, String salt) Ak taky zaznam neexistuje, tak ho uloziboolean
save()
Ulozi a nastavi datum ulozenia (ak nebol nastaveny)boolean
Ulozi ho iba ak uz neexistuje taky password v historiiboolean
Ak neexistuje taky zaznam, tak ho ulozi a zmaze najstarsivoid
setId
(int id) void
setPassword
(String password) void
setPasswordsHistoryId
(int passwordsHistoryId) void
void
setSaveDate
(Date saveDate) void
setUserId
(int userId) Methods inherited from class sk.iway.iwcm.database.ActiveRecordBase
delete, get__rowNum__, set__rowNum__, toString
-
Constructor Details
-
PasswordsHistoryBean
public PasswordsHistoryBean() -
PasswordsHistoryBean
-
-
Method Details
-
insertAndSaveNew
Ak taky zaznam neexistuje, tak ho ulozi -
getPasswordsHistoryId
public int getPasswordsHistoryId() -
setPasswordsHistoryId
public void setPasswordsHistoryId(int passwordsHistoryId) -
setId
public void setId(int id) - Specified by:
setId
in classActiveRecord
-
getId
public int getId()- Specified by:
getId
in classActiveRecord
-
getUserId
public int getUserId() -
setUserId
public void setUserId(int userId) -
getPassword
-
setPassword
-
getSalt
-
setSalt
-
getSaveDate
-
setSaveDate
-
save
public boolean save()Ulozi a nastavi datum ulozenia (ak nebol nastaveny)- Overrides:
save
in classActiveRecordBase
-
saveIfNotExists
public boolean saveIfNotExists()Ulozi ho iba ak uz neexistuje taky password v historii- Returns:
-
saveIfNotExistsAndDeleteOld
public boolean saveIfNotExistsAndDeleteOld()Ak neexistuje taky zaznam, tak ho ulozi a zmaze najstarsi- Returns:
-