Class SignatureResult

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

public final class SignatureResult extends Object
A result of signature calculation
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    SignatureResult(String signatureInput, String signature, String signatureBase)
    Creates Signature Result object
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Compares the specified object with this SignatureResult for equality.
    Returns Signature to be copied to Signature header
    Returns signature base which can be used for logging or debugging
    Returns Signature Input to be copied to Signature-Input header
    int
    Returns hash code for this SignatureResult, which is composed of hash codes of all object fields
    String representation of this object

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SignatureResult

      public SignatureResult(String signatureInput, String signature, String signatureBase)
      Creates Signature Result object
      Parameters:
      signatureInput - Signature Input to be copied to Signature-Input header
      signature - Signature to be copied to Signature header
      signatureBase - Used signature base which can be used for logging or debugging
  • Method Details

    • getSignatureInput

      public String getSignatureInput()
      Returns Signature Input to be copied to Signature-Input header
      Returns:
      Signature Input
    • getSignature

      public String getSignature()
      Returns Signature to be copied to Signature header
      Returns:
      Signature
    • getSignatureBase

      public String getSignatureBase()
      Returns signature base which can be used for logging or debugging
      Returns:
      Signature Base
      See Also:
    • equals

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

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

      public String toString()
      String representation of this object
      Overrides:
      toString in class Object
      Returns:
      String representation of this SignatureResult