Class RevocationType
Specifies the type of revocation to be considered during the LTV enable process and their corresponding actions.
Inheritance
System.Object
RevocationType
Namespace: Syncfusion.Pdf.Security
Assembly: Syncfusion.Pdf.NET.dll
Syntax
public sealed class RevocationType : Enum
Examples
//Load the PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
//Get the existing page.
PdfLoadedPage page = loadedDocument.Pages[0] as PdfLoadedPage;
//Create a new PdfSignature instance.
PdfSignature signature = new PdfSignature(loadedDocument, page, null, "Sig1");
//Create LTV with X509 public certificates.
signature.CreateLtv(certificates, RevocationType.OcspAndCrl);
//Save and close the PDF document.
loadedDocument.Save("output.pdf");
loadedDocument.Close(true);
Fields
Crl
Embeds the CRL data to the PDF document.
Declaration
public const RevocationType Crl
Field Value
Type |
---|
RevocationType |
Ocsp
Embeds the OCSP data to the PDF document.
Declaration
public const RevocationType Ocsp
Field Value
Type |
---|
RevocationType |
OcspAndCrl
Embeds both OCSP and CRL data to the PDF document.
Declaration
public const RevocationType OcspAndCrl
Field Value
Type |
---|
RevocationType |
OcspOrCrl
Embeds OCSP or CRL data to the PDF document.
Declaration
public const RevocationType OcspOrCrl
Field Value
Type |
---|
RevocationType |