Package net.visma.autopay.http.signature
Class SignatureComponents
java.lang.Object
net.visma.autopay.http.signature.SignatureComponents
Builder class for constructing HTTP Message Components. Used when signing and verifying signatures.
Contains component definitions - values should be provided in
SignatureContext
.
Internally, backed by a list of Component
objects.- See Also:
-
- HTTP Message Components
Component
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SignatureComponents.Builder
builder()
Returns a builder used to constructSignatureComponents
objectboolean
Compares the specified object with this SignatureComponents for equality.int
hashCode()
Returns hash code for this SignatureComponents, which is composed of hash codes of all contained componentstoString()
String representation of this object
-
Method Details
-
builder
Returns a builder used to constructSignatureComponents
objectWhen creating signatures, order of components added in the builder is preserved in produced content of Signature-Input. Adding the same component multiple times will create duplicates - no checks in that area are performed.
- Returns:
- A SignatureComponents builder
-
toString
String representation of this object -
equals
Compares the specified object with this SignatureComponents for equality. Returns true if the given object is of the same class as this SignatureComponents, and all contained components are equal. -
hashCode
public int hashCode()Returns hash code for this SignatureComponents, which is composed of hash codes of all contained components
-