Class PdfSignatureCache

java.lang.Object
eu.europa.esig.dss.pdf.PdfSignatureCache
All Implemented Interfaces:
Serializable

public class PdfSignatureCache extends Object implements Serializable
This class is used as a DTO containing cached data to be used to accelerate the signature creation process
See Also:
  • Constructor Details

    • PdfSignatureCache

      public PdfSignatureCache()
      Default constructor instantiating object with null values
  • Method Details

    • getDigest

      @Deprecated public byte[] getDigest()
      Deprecated.
      since 5.12. Use byte[] digest = getMessageDigest().getValue()
      Gets digest of the ByteRange
      Returns:
      byte array representing digest value
    • getMessageDigest

      public DSSMessageDigest getMessageDigest()
      Gets message-digest computed in the prepared PDF revision ByteRange
      Returns:
      DSSMessageDigest
    • setMessageDigest

      public void setMessageDigest(DSSMessageDigest messageDigest)
      Sets message-digest of the ByteRange
      Parameters:
      messageDigest - DSSMessageDigest representing the message-digest computed on the PDF signature ByteRange
    • getToBeSignedDocument

      public DSSDocument getToBeSignedDocument()
      Gets ToBeSigned document
      Returns:
      DSSDocument
    • setToBeSignedDocument

      public void setToBeSignedDocument(DSSDocument toBeSignedDocument)
      Sets ToBeSigned document
      Parameters:
      toBeSignedDocument - DSSDocument
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object