Class SignatureMetadata
java.lang.Object
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<ComponentIdentifier>
,Collection<ComponentIdentifier>
,List<ComponentIdentifier>
,RandomAccess
,SequencedCollection<ComponentIdentifier>
Signature metadata.
From the first paragraph of RFC 9421, Section 2.3. Signature Parameters:
HTTP message signatures have metadata properties that provide information regarding the signature's generation and verification, consisting of the ordered set of covered components and the ordered set of parameters, where the parameters include a timestamp of signature creation, identifiers for verification key material, and other utilities. This metadata is represented by a special message component in the signature base for signature parameters; this special message component is treated slightly differently from other message components.
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor.SignatureMetadata
(SignatureMetadataParameters parameters) A constructor with signature metadata parameters.SignatureMetadata
(Collection<? extends ComponentIdentifier> identifiers) A constructor with component identifiers.SignatureMetadata
(Collection<? extends ComponentIdentifier> identifiers, SignatureMetadataParameters parameters) A constructor with component identifiers and signature metadata parameters. -
Method Summary
Modifier and TypeMethodDescriptionGet the signature metadata parameters.Serialize the signature metadata represented by this instance, and return the resulting string.Serialize the signature metadata represented by this instance, and write the resulting string into the specified string builder.toString()
Get the string representation of this instance, which is the serialized signature metadata returned by theserialize()
method.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
SignatureMetadata
public SignatureMetadata()The default constructor. -
SignatureMetadata
A constructor with signature metadata parameters.- Parameters:
parameters
- Signature metadata parameters.
-
SignatureMetadata
A constructor with component identifiers.- Parameters:
identifiers
- Component identifiers.
-
SignatureMetadata
public SignatureMetadata(Collection<? extends ComponentIdentifier> identifiers, SignatureMetadataParameters parameters) A constructor with component identifiers and signature metadata parameters.- Parameters:
identifiers
- Component identifiers.parameters
- Signature metadata parameters.
-
-
Method Details
-
toString
Get the string representation of this instance, which is the serialized signature metadata returned by theserialize()
method.- Overrides:
toString
in classAbstractCollection<ComponentIdentifier>
- Returns:
- The string representation of this instance.
-
serialize
Serialize the signature metadata represented by this instance, and return the resulting string.- Returns:
- The serialized signature metadata represented by this instance.
-
serializeTo
Serialize the signature metadata represented by this instance, and write the resulting string into the specified string builder.- Parameters:
sb
- A string builder into which the resulting string is written.- Returns:
- The same string builder that was passed as the argument.
-
getParameters
Get the signature metadata parameters.- Returns:
- The signature metadata parameters.
-