Class PasswordReset

java.lang.Object
africa.absa.inception.security.PasswordReset
All Implemented Interfaces:
Serializable

@Entity public class PasswordReset extends Object implements Serializable
The PasswordReset class holds the information for a password rest.
Author:
Marcus Portmann
See Also:
  • Constructor Details

    • PasswordReset

      public PasswordReset()
      Constructs a new PasswordReset.
    • PasswordReset

      public PasswordReset(String username, String securityCodeHash)
      Constructs a new PasswordReset.
      Parameters:
      username - the username for the user associated with the password reset
      securityCodeHash - the security code hash
  • Method Details

    • equals

      public boolean equals(Object object)
      Indicates whether some other object is "equal to" this one.
      Overrides:
      equals in class Object
      Parameters:
      object - the reference object with which to compare
      Returns:
      true if this object is the same as the object argument otherwise false
    • getCompleted

      public LocalDateTime getCompleted()
      Returns the date and time the password reset was completed.
      Returns:
      the date and time the password reset was completed
    • getExpired

      public LocalDateTime getExpired()
      Returns the date and time the password reset expired.
      Returns:
      the date and time the password reset expired
    • getRequested

      public LocalDateTime getRequested()
      Returns the date and time the password reset was requested.
      Returns:
      the date and time the password reset was requested
    • getSecurityCodeHash

      public String getSecurityCodeHash()
      Returns the security code hash.
      Returns:
      the security code hash
    • getStatus

      public PasswordResetStatus getStatus()
      Returns the status of the password reset.
      Returns:
      the status of the password reset
    • getUsername

      public String getUsername()
      Returns the username for the user associated with the password reset.
      Returns:
      the username for the user associated with the password reset
    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for the object
    • setCompleted

      public void setCompleted(LocalDateTime completed)
      Set the date and time the password reset was completed.
      Parameters:
      completed - the date and time the password reset was completed
    • setExpired

      public void setExpired(LocalDateTime expired)
      Set the date and time the password reset expired.
      Parameters:
      expired - the date and time the password reset expired
    • setRequested

      public void setRequested(LocalDateTime requested)
      Set the date and time the password reset was requested.
      Parameters:
      requested - the date and time the password reset was requested
    • setSecurityCodeHash

      public void setSecurityCodeHash(String securityCodeHash)
      Set the security code hash.
      Parameters:
      securityCodeHash - the security code hash
    • setStatus

      public void setStatus(PasswordResetStatus status)
      Set the status of the password reset.
      Parameters:
      status - the status of the password reset
    • setUsername

      public void setUsername(String username)
      Set the username for the user associated with the password reset.
      Parameters:
      username - the username for the user associated with the password reset