Enum TokenStatus

    • Enum Constant Detail

      • UNASSIGNED

        public static final TokenStatus UNASSIGNED
        The token is not assigned to a user
      • PENDING_ACTIVATION

        public static final TokenStatus PENDING_ACTIVATION
        The token has been assigned to a user, but it's still not active.
      • ACTIVE

        public static final TokenStatus ACTIVE
        The token is active and can be used.
      • BLOCKED

        public static final TokenStatus BLOCKED
        The token is blocked from being used.
      • CANCELED

        public static final TokenStatus CANCELED
        The token is canceled and cannot be used.
      • ACTIVATION_EXPIRED

        public static final TokenStatus ACTIVATION_EXPIRED
        The token has exceeded the activation deadline
      • EXPIRED

        public static final TokenStatus EXPIRED
        The token has exceeded the expiration date
    • Method Detail

      • values

        public static TokenStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TokenStatus c : TokenStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TokenStatus valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null