Class DefaultPDFSignerResult

java.lang.Object
se.idsec.signservice.security.sign.impl.AbstractSignerResult<byte[]>
se.idsec.signservice.security.sign.pdf.impl.DefaultPDFSignerResult
All Implemented Interfaces:
PDFSignerResult, SignerResult<byte[]>

public class DefaultPDFSignerResult extends AbstractSignerResult<byte[]> implements PDFSignerResult
Default implementation of the signature result interface.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Constructor Details

    • DefaultPDFSignerResult

      public DefaultPDFSignerResult()
      Default constructor.
  • Method Details

    • getSignedAttributes

      public byte[] getSignedAttributes()
      Gets the signed attributes bytes signed by the generated signature. These are the bytes sent to an external signature service as the to be signed bytes. These bytes may be manipulated from the signed bytes in the CMSSignedData after adapting the result to requirements by the signing service. One such example is if the signature is a PAdES signature, where the signing time attribute must be removed before being sent to the signing service.
      Specified by:
      getSignedAttributes in interface PDFSignerResult
      Returns:
      signed attributes bytes
    • setSignedAttributes

      public void setSignedAttributes(byte[] signedAttributes)
      Assigns the signed attributes bytes.
      Parameters:
      signedAttributes - CMS signed attributes
    • getSignedData

      public byte[] getSignedData()
      Gets the bytes of CMS Content Info holding the SignedData.
      Specified by:
      getSignedData in interface PDFSignerResult
      Returns:
      the bytes of CMS Content Info holding the SignedData
    • setSignedData

      public void setSignedData(byte[] signedData)
      Assigns the CMS signed data.
      Parameters:
      signedData - the signed data bytes