Enum Class SignatureParameterType

java.lang.Object
java.lang.Enum<SignatureParameterType>
net.visma.autopay.http.signature.SignatureParameterType
All Implemented Interfaces:
Serializable, Comparable<SignatureParameterType>, Constable

public enum SignatureParameterType extends Enum<SignatureParameterType>
Defines types of Signature Parameters
See Also:
  • Enum Constant Details

    • CREATED

      public static final SignatureParameterType CREATED
      created - creation time as an Integer UNIX timestamp value
    • EXPIRES

      public static final SignatureParameterType EXPIRES
      expires - expiration time as an Integer UNIX timestamp value
    • NONCE

      public static final SignatureParameterType NONCE
      nonce - a random unique value generated for the signature as a String value
    • ALGORITHM

      public static final SignatureParameterType ALGORITHM
      alg - the HTTP message signature algorithm from the HTTP Signature Algorithm Registry, as a String value
    • KEY_ID

      public static final SignatureParameterType KEY_ID
      keyid - the identifier for the key material as a String value
    • TAG

      public static final SignatureParameterType TAG
      An application-specific tag for the signature as a String value. This value is used by applications to help identify signatures relevant for specific applications or protocols.
  • Method Details

    • values

      public static SignatureParameterType[] 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 SignatureParameterType 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
    • fromIdentifier

      public static SignatureParameterType fromIdentifier(String identifier)
      Returns SignatureParameterType for given identifier, e.g. CREATED for "created"
      Parameters:
      identifier - Signature Parameter Type's identifier
      Returns:
      SignatureParameterType or null if identifier is unknown
    • getIdentifier

      public String getIdentifier()
      Returns identifier of this SignatureParameterType, e.g. "created" for CREATED
      Returns:
      This Signature Parameter Type's identifier