Enum Class PasswordResetLink.Status

java.lang.Object
java.lang.Enum<PasswordResetLink.Status>
com.iizix.server.security.PasswordResetLink.Status
All Implemented Interfaces:
Serializable, Comparable<PasswordResetLink.Status>, Constable
Enclosing class:
PasswordResetLink

public static enum PasswordResetLink.Status extends Enum<PasswordResetLink.Status>
The outcome of a verification.
Author:
Christopher Mindus
  • Enum Constant Details

    • VALID

      public static final PasswordResetLink.Status VALID
      The token was sealed by this server for this purpose and has not expired.
    • EXPIRED

      public static final PasswordResetLink.Status EXPIRED
      The token was sealed by this server for this purpose but its expiry time has passed.
    • INVALID

      public static final PasswordResetLink.Status INVALID
      The token is missing, malformed, sealed by another key or for another purpose, or altered.
  • Method Details

    • values

      public static PasswordResetLink.Status[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PasswordResetLink.Status valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null