Enum Class HubOrigins.Verdict

java.lang.Object
java.lang.Enum<HubOrigins.Verdict>
com.iizix.server.hub.HubOrigins.Verdict
All Implemented Interfaces:
Serializable, Comparable<HubOrigins.Verdict>, Constable
Enclosing class:
HubOrigins

public static enum HubOrigins.Verdict extends Enum<HubOrigins.Verdict>
The verdict on an Origin.
Author:
Christopher Mindus
  • Enum Constant Details

    • ALLOWED

      public static final HubOrigins.Verdict ALLOWED
      The origin matches the allow-list.
    • NO_ORIGIN

      public static final HubOrigins.Verdict NO_ORIGIN
      The request carries no Origin: allowed, the end point authenticates.
    • REFUSED

      public static final HubOrigins.Verdict REFUSED
      The origin matches nothing: refused in production, logged in development.
  • Method Details

    • values

      public static HubOrigins.Verdict[] 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 HubOrigins.Verdict 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