Enum Class UrlSecurityMode

java.lang.Object
java.lang.Enum<UrlSecurityMode>
com.oorian.security.UrlSecurityMode
All Implemented Interfaces:
Serializable, Comparable<UrlSecurityMode>, Constable

public enum UrlSecurityMode extends Enum<UrlSecurityMode>
Defines the URL protection strategy for tamper prevention.
Since:
2.1
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Enum Constant Details

    • SIGNED

      public static final UrlSecurityMode SIGNED
      HMAC-based URL signing. Appends a cryptographic signature to the URL that is verified on each request. The URL path remains human-readable, but any modification invalidates the signature.
    • ENCRYPTED

      public static final UrlSecurityMode ENCRYPTED
      AES-GCM encryption of the URL path. The entire path and parameters are encrypted into an opaque Base64URL token, preventing users from seeing or guessing the underlying resource identifiers.
  • Method Details

    • values

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