Class PasswordsHistoryBean

All Implemented Interfaces:
Serializable

@Entity public class PasswordsHistoryBean extends ActiveRecord implements Serializable
#23471 - Password security - pri zmene hesla sa musi kontrolovat, ci heslo nie je v historii pouzitych hesiel usera.
See Also:
  • Constructor Details

    • PasswordsHistoryBean

      public PasswordsHistoryBean()
    • PasswordsHistoryBean

      public PasswordsHistoryBean(int userId, String password, String salt)
  • Method Details

    • insertAndSaveNew

      public static PasswordsHistoryBean insertAndSaveNew(int userId, String hash, String salt)
      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 class ActiveRecord
    • getId

      public int getId()
      Specified by:
      getId in class ActiveRecord
    • getUserId

      public int getUserId()
    • setUserId

      public void setUserId(int userId)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getSalt

      public String getSalt()
    • setSalt

      public void setSalt(String salt)
    • getSaveDate

      public Date getSaveDate()
    • setSaveDate

      public void setSaveDate(Date saveDate)
    • save

      public boolean save()
      Ulozi a nastavi datum ulozenia (ak nebol nastaveny)
      Overrides:
      save in class ActiveRecordBase
    • 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: