Pdf - RevocationStatus

30 Sep 20261 minute to read

Public enum that specifies the certificate’s revocation status.

// Load the signed PDF document
const document: PdfDocument = new PdfDocument(data);
// Access an existing signature field
const field: PdfSignatureField = document.form.fieldAt(0) as PdfSignatureField;
// Validate the signature
const result: PdfSignatureValidationResult = field.validateSignature();
// Check the OCSP revocation status
const revocationResult: RevocationStatus = result.revocationResult.ocspRevocationStatus;
// Destroy the document
document.destroy();
  • good - Specifies that the certificate is valid and has not been revoked.
  • none - Specifies that the revocation status could not be determined or is unavailable.
  • revoked - Specifies that the certificate has been revoked.
  • unknown - Specifies that the revocation status of the certificate is unknown.