Class PasswordToken


  • public class PasswordToken
    extends Object
    Author:
    Nathan Moore (nathanmoore).
    • Constructor Detail

      • PasswordToken

        public PasswordToken()
    • Method Detail

      • getId

        public String getId()
        The primary key of this token.
      • getToken

        public String getToken()
        The token value
      • getDateCreated

        public Instant getDateCreated()
        The date this token was created.
      • getDateUsed

        public Instant getDateUsed()
        The date this token was used, or null.
      • isUsed

        public boolean isUsed()
        Whether or not this token has been used.
      • getUserId

        public String getUserId()
        The ID of the user associated with this token.
      • getPurpose

        public String getPurpose()
        The reason this token was created.
      • setId

        public void setId​(String id)
        The primary key of this token.
      • setToken

        public void setToken​(String token)
        The token value
      • setDateCreated

        public void setDateCreated​(Instant dateCreated)
        The date this token was created.
      • setDateUsed

        public void setDateUsed​(Instant dateUsed)
        The date this token was used, or null.
      • setUsed

        public void setUsed​(boolean used)
        Whether or not this token has been used.
      • setUserId

        public void setUserId​(String userId)
        The ID of the user associated with this token.
      • setPurpose

        public void setPurpose​(String purpose)
        The reason this token was created.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object