Class SignatureComponents

java.lang.Object
net.visma.autopay.http.signature.SignatureComponents

public class SignatureComponents extends Object
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:
  • Method Details

    • builder

      public static SignatureComponents.Builder builder()
      Returns a builder used to construct SignatureComponents object

      When 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

      public String toString()
      String representation of this object
      Overrides:
      toString in class Object
      Returns:
      String representation of this SignatureComponents
    • equals

      public boolean equals(Object o)
      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.
      Overrides:
      equals in class Object
      Parameters:
      o - Object to be compared with this SignatureComponents
      Returns:
      True is specified object is equal to this SignatureComponents
    • hashCode

      public int hashCode()
      Returns hash code for this SignatureComponents, which is composed of hash codes of all contained components
      Overrides:
      hashCode in class Object
      Returns:
      The hash code for this SignatureComponents