Class SignedDocument

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

public class SignedDocument extends Object implements Extensible
Represents a signed document.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
See Also:
  • Constructor Details

    • SignedDocument

      public SignedDocument()
    • SignedDocument

      public SignedDocument(String id, String signedContent, String mimeType, Extension extension)
  • Method Details

    • setExtension

      public void setExtension(Extension extension)
      Assigns the extension parameters for the instance.
      Specified by:
      setExtension in interface Extensible
      Parameters:
      extension - the extension
    • 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
    • builder

      public static SignedDocument.SignedDocumentBuilder builder()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setId

      public void setId(String id)
      The unique ID for this document (within the current operation).
      Parameters:
      id - unique ID for this document
    • getId

      public String getId()
      The unique ID for this document (within the current operation).
      Returns:
      unique ID for this document
    • setSignedContent

      public void setSignedContent(String signedContent)
      The signed document as a Base64-encoded byte string.
      Parameters:
      signedContent - the signed document content (Base64-encoded)
    • getSignedContent

      public String getSignedContent()
      The signed document as a Base64-encoded byte string.
      Returns:
      the signed document content (Base64-encoded)
    • setMimeType

      public void setMimeType(String mimeType)
      The MIME type of the signed document. See DocumentType for the supported types.
      Parameters:
      mimeType - the MIME type for the signed document
    • getMimeType

      public String getMimeType()
      The MIME type of the signed document. See DocumentType for the supported types.
      Returns:
      the MIME type for the signed document