Class ProofOfExistenceFoundEvent

java.lang.Object
com.itextpdf.signatures.validation.events.ProofOfExistenceFoundEvent
All Implemented Interfaces:
IEvent, IValidationEvent

public class ProofOfExistenceFoundEvent extends Object implements IValidationEvent
This event is triggered when a timestamp signature is encountered.
  • Constructor Details

    • ProofOfExistenceFoundEvent

      public ProofOfExistenceFoundEvent (PdfSignature sig, String signatureName)
      Creates a new event instance for a document timestamp.
      Parameters:
      sig - the PdfSignature containing the timestamp signature, only applicable for document signatures
      signatureName - signature name, only applicable for document signatures
    • ProofOfExistenceFoundEvent

      public ProofOfExistenceFoundEvent (byte[] timeStampSignature)
      Creates a new event instance for a signature timestamp.
      Parameters:
      timeStampSignature - timestamp container as a byte[]
  • Method Details

    • getTimeStampSignature

      public byte[] getTimeStampSignature()
      Returns the encoded timestamp signature.
      Returns:
      the encoded timestamp signature
    • isDocumentTimestamp

      public boolean isDocumentTimestamp()
      Returns whether this is a document timestamp.
      Returns:
      whether this is a document timestamp
    • getPdfSignature

      public PdfSignature getPdfSignature()
      Returns the PdfSignature containing the timestamp signature.
      Returns:
      the PdfSignature containing the timestamp signature
    • getEventType

      public EventType getEventType()
      Returns the event type of the event, this fields is used to avoid instanceof usage.
      Specified by:
      getEventType in interface IValidationEvent
      Returns:
      the event type of the event