Enum Class ForwardedHeaders

java.lang.Object
java.lang.Enum<ForwardedHeaders>
com.jsgalactic.axiom.security.ForwardedHeaders
All Implemented Interfaces:
Serializable, Comparable<ForwardedHeaders>, Constable

public enum ForwardedHeaders extends Enum<ForwardedHeaders>
The family of proxy headers TrustedProxies believes. Exactly one family is read, never both, so a request cannot mix a spoofed header of one family with a genuine header of the other and make the result ambiguous. The other family is ignored entirely.
  • Enum Constant Details

    • X_FORWARDED

      public static final ForwardedHeaders X_FORWARDED
      X-Forwarded-For, X-Forwarded-Proto, X-Forwarded-Host, X-Forwarded-Port.
    • FORWARDED

      public static final ForwardedHeaders FORWARDED
      The standard RFC 7239 Forwarded header (for, proto, host).
  • Method Details

    • values

      public static ForwardedHeaders[] 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 ForwardedHeaders 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