Class SignatureContext

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

public class SignatureContext extends Object
Container for actual values used in HTTP requests and responses, like HTTP header values, status code, HTTP method, target URI.

Values stored in Signature Context are extracted during signature creation and verification by using component definitions stored in SignatureComponents. Values for Related Request are stored in an inner SignatureContext object.

  • Method Details

    • builder

      public static SignatureContext.Builder builder()
      Returns builder used to construct SignatureContext object
      Returns:
      A SignatureContext builder
    • toString

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

      public boolean equals(Object o)
      Compares the specified object with this SignatureContext for equality. Returns true if the given object is of the same class as this SignatureContext, and all their fields are equal.
      Overrides:
      equals in class Object
      Parameters:
      o - Object to be compared with this SignatureContext
      Returns:
      True is specified object is equal to this SignatureContext
    • hashCode

      public int hashCode()
      Returns hash code for this SignatureContext, which is composed of hash codes of all object fields
      Overrides:
      hashCode in class Object
      Returns:
      The hash code for this SignatureContext