Package net.visma.autopay.http.signature
Enum Class SignatureParameterType
- All Implemented Interfaces:
Serializable
,Comparable<SignatureParameterType>
,Constable
Defines types of Signature Parameters
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionalg - the HTTP message signature algorithm from the HTTP Signature Algorithm Registry, as a String valuecreated - creation time as an Integer UNIX timestamp valueexpires - expiration time as an Integer UNIX timestamp valuekeyid - the identifier for the key material as a String valuenonce - a random unique value generated for the signature as a String valueAn application-specific tag for the signature as a String value. -
Method Summary
Modifier and TypeMethodDescriptionstatic SignatureParameterType
fromIdentifier
(String identifier) ReturnsSignatureParameterType
for given identifier, e.g.Returns identifier of thisSignatureParameterType
, e.g.static SignatureParameterType
Returns the enum constant of this class with the specified name.static SignatureParameterType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
CREATED
created - creation time as an Integer UNIX timestamp value -
EXPIRES
expires - expiration time as an Integer UNIX timestamp value -
NONCE
nonce - a random unique value generated for the signature as a String value -
ALGORITHM
alg - the HTTP message signature algorithm from the HTTP Signature Algorithm Registry, as a String value -
KEY_ID
keyid - the identifier for the key material as a String value -
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
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
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 nameNullPointerException
- if the argument is null
-
fromIdentifier
ReturnsSignatureParameterType
for given identifier, e.g.CREATED
for "created"- Parameters:
identifier
- Signature Parameter Type's identifier- Returns:
- SignatureParameterType or null if identifier is unknown
-
getIdentifier
Returns identifier of thisSignatureParameterType
, e.g. "created" forCREATED
- Returns:
- This Signature Parameter Type's identifier
-