Class ProofOfExistenceFoundEvent
java.lang.Object
com.itextpdf.signatures.validation.events.ProofOfExistenceFoundEvent
- All Implemented Interfaces:
-
IEvent,IValidationEvent
This event is triggered when a timestamp signature is encountered.
-
Constructor Summary
ConstructorsConstructorDescriptionProofOfExistenceFoundEvent(byte[] timeStampSignature) Creates a new event instance for a signature timestamp.ProofOfExistenceFoundEvent(PdfSignature sig, String signatureName) Creates a new event instance for a document timestamp. -
Method Summary
Modifier and TypeMethodDescriptionReturns the event type of the event, this fields is used to avoid instanceof usage.Returns the PdfSignature containing the timestamp signature.byte[]Returns the encoded timestamp signature.booleanReturns whether this is a document timestamp.
-
Constructor Details
-
ProofOfExistenceFoundEvent
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
Returns the PdfSignature containing the timestamp signature.- Returns:
- the PdfSignature containing the timestamp signature
-
getEventType
Returns the event type of the event, this fields is used to avoid instanceof usage.- Specified by:
-
getEventTypein interfaceIValidationEvent - Returns:
- the event type of the event
-