Enum Class LicenseRefusal.Step

java.lang.Object
java.lang.Enum<LicenseRefusal.Step>
com.iizix.license.v2.LicenseRefusal.Step
All Implemented Interfaces:
Serializable, Comparable<LicenseRefusal.Step>, Constable
Enclosing class:
LicenseRefusal

public static enum LicenseRefusal.Step extends Enum<LicenseRefusal.Step>
The steps of 2.5 that refuse. The fifth step, expiry, never refuses.
Author:
Christopher Mindus
  • Enum Constant Details

    • ENVELOPE

      public static final LicenseRefusal.Step ENVELOPE
      Step 1: the envelope is well-formed, the certificate verifies under a pinned root and the verifier's clock is inside its validity.
    • SIGNATURE

      public static final LicenseRefusal.Step SIGNATURE
      Step 2: the signature verifies over the payload bytes under the certified key, and the envelope's kid is the certificate's.
    • PAYLOAD

      public static final LicenseRefusal.Step PAYLOAD
      Step 3: the payload parses under the rules of 2.2 and v is 2.
    • IDENTITY

      public static final LicenseRefusal.Step IDENTITY
      Step 4: lic is this installation's licence UUID and ikey its public key.
  • Method Details

    • values

      public static LicenseRefusal.Step[] 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 LicenseRefusal.Step 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
    • getNumber

      public int getNumber()
      Gets the step number of 2.5.
      Returns:
      1 to 4.
    • getTitle

      public String getTitle()
      Gets the step's title.
      Returns:
      The title, e.g. signature.