Class PasswordResetId

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

public class PasswordResetId extends Object implements Serializable
The PasswordResetId class implements the ID class for the PasswordReset class.
Author:
Marcus Portmann
See Also:
  • Constructor Details

    • PasswordResetId

      public PasswordResetId()
  • 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
    • getRequested

      public LocalDateTime getRequested()
      Returns the date and time the password reset was requested.
      Returns:
      the date and time the password reset was requested
    • 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
    • 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
    • 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