Class RevocationStatus
Specifies the certificate's revocation status.
Inheritance
System.Object
RevocationStatus
Namespace: Syncfusion.Pdf.Security
Assembly: Syncfusion.Pdf.Portable.dll
Syntax
public sealed class RevocationStatus : Enum
Examples
// Loads an existing document
PdfLoadedDocument document = new PdfLoadedDocument(fileName);
// Gets the signature field
PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField;
// Validate signature and get validation result
PdfSignatureValidationResult result = signatureField.ValidateSignature();
// Gets the revocation result
RevocationResult revocationResult = result.RevocationResult;
// Gets the OCSP revocation status
RevocationStatus revocationStatus = revocationResult.OcspRevocationStatus;
// Close the document
document.Close(true);
' Loads an existing document
Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName)
' Gets the signature field
Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField
' Validate signature and get validation result
Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature()
' Gets the revocation result
Dim revocationResult As RevocationResult = result.RevocationResult
' Gets the OCSP revocation status
Dim revocationStatus As RevocationStatus = revocationResult.OcspRevocationStatus
' Close the document
document.Close(true)
Fields
Good
Specifies good status.
Declaration
public const RevocationStatus Good
Field Value
Type |
---|
RevocationStatus |
None
Specifies Default / No status.
Declaration
public const RevocationStatus None
Field Value
Type |
---|
RevocationStatus |
Revoked
Specifies revoked status.
Declaration
public const RevocationStatus Revoked
Field Value
Type |
---|
RevocationStatus |
Unknown
Specifies unknown status.
Declaration
public const RevocationStatus Unknown
Field Value
Type |
---|
RevocationStatus |