Class SignatureResult

java.lang.Object
se.idsec.signservice.integration.SignatureResult
All Implemented Interfaces:
Serializable, Extensible

public class SignatureResult extends Object implements Extensible
Representation of the result of a signature operation.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
See Also:
  • Constructor Details

    • SignatureResult

      public SignatureResult()
      Default constructor.
    • SignatureResult

      public SignatureResult(String id, String correlationId, List<SignedDocument> signedDocuments, SignerAssertionInformation signerAssertionInformation, Extension extension)
      Constructor.
      Parameters:
      id - the ID for the signature operation
      correlationId - the correlation ID
      signedDocuments - the signed documents
      signerAssertionInformation - information about the signer's "authentication for signature" that was part of the signature operation
      extension - extensions for the object
  • Method Details

    • getId

      public String getId()
      Gets the ID for the signature operation. This ID corresponds to the RequestID of the SignRequest and SignResponse.
      Returns:
      the operation ID
    • setId

      public void setId(String id)
      Assigns the ID for the signature operation. This ID corresponds to the RequestID of the SignRequest and SignResponse.
      Parameters:
      id - the operation ID
    • getCorrelationId

      public String getCorrelationId()
      Gets the correlation ID. This is the ID that is used in all logging events.
      Returns:
      the correlation ID
    • setCorrelationId

      public void setCorrelationId(String correlationId)
      Assigns the correlation ID. This is the ID that is used in all logging events.
      Parameters:
      correlationId - the correlationId to use for this process
    • getSignedDocuments

      public List<SignedDocument> getSignedDocuments()
      Gets the signed documents.
      Returns:
      the signed documents
    • setSignedDocuments

      public void setSignedDocuments(List<SignedDocument> signedDocuments)
      Assigns the signed documents.
      Parameters:
      signedDocuments - the signed documents
    • getSignerAssertionInformation

      public SignerAssertionInformation getSignerAssertionInformation()
      Gets information about the signer's "authentication for signature" that was part of the signature operation.
      Returns:
      the assertion information
    • setSignerAssertionInformation

      public void setSignerAssertionInformation(SignerAssertionInformation signerAssertionInformation)
      Assigns information about the signer's "authentication for signature" that was part of the signature operation.
      Parameters:
      signerAssertionInformation - assertion information
    • getExtension

      public Extension getExtension()
      Returns the extension parameters for the instance.
      Specified by:
      getExtension in interface Extensible
      Returns:
      the extension, or null if no extensions are set
    • setExtension

      public void setExtension(Extension extension)
      Assigns the extension parameters for the instance.
      Specified by:
      setExtension in interface Extensible
      Parameters:
      extension - the extension
    • builder

      public static SignatureResult.SignatureResultBuilder builder()
    • toString

      public String toString()
      Overrides:
      toString in class Object