Class SignatureInputField
java.lang.Object
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,,SignatureMetadata> SequencedMap<String,SignatureMetadata>
The
Signature-Input HTTP Field.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor.SignatureInputField(Map<String, ? extends SignatureMetadata> members) A constructor with dictionary members, each of which represents a pair of label and signature metadata. -
Method Summary
Modifier and TypeMethodDescriptionstatic SignatureInputFieldParse the value of theSignature-InputHTTP field.Serialize the dictionary represented by this instance, as defined in RFC 8941 Structured Field Values for HTTP, and return the resulting string.Serialize the dictionary represented by this instance, as defined in RFC 8941 Structured Field Values for HTTP, and write the resulting string into the specified string builder.toString()Get the string representation of this instance, which is the serialized dictionary returned by theserialize()method.Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, newLinkedHashMap, putFirst, putLast, removeEldestEntry, replaceAll, reversed, sequencedEntrySet, sequencedKeySet, sequencedValues, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMap
equals, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from interface java.util.SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry
-
Constructor Details
-
SignatureInputField
public SignatureInputField()The default constructor. -
SignatureInputField
A constructor with dictionary members, each of which represents a pair of label and signature metadata.- Parameters:
members- Dictionary members in the value of theSignature-InputHTTP field.
-
-
Method Details
-
parse
Parse the value of theSignature-InputHTTP field.- Parameters:
fieldValue- The value of theSignature-InputHTTP field. If null is passed, this method returns null.- Returns:
- The parsed field value.
- Throws:
SignatureException- The passed field value could not be parsed successfully.
-
toString
Get the string representation of this instance, which is the serialized dictionary returned by theserialize()method.- Overrides:
toStringin classAbstractMap<String,T> - Returns:
- The string representation of this instance.
-
serialize
Serialize the dictionary represented by this instance, as defined in RFC 8941 Structured Field Values for HTTP, and return the resulting string.- Returns:
- The serialized dictionary represented by this instance.
-
serializeTo
Serialize the dictionary represented by this instance, as defined in RFC 8941 Structured Field Values for HTTP, and write the resulting string into the specified string builder.The ABNF for Dictionaries from RFC 8941 Structured Field Values for HTTP, 3.2. Dictionaries:
sf-dictionary = dict-member *( OWS "," OWS dict-member ) dict-member = member-key ( parameters / ( "=" member-value )) member-key = key member-value = sf-item / inner-list
- Parameters:
sb- A string builder into which the resulting string is written.- Returns:
- The same string builder that was passed as the argument.
-