menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RevocationResult - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class RevocationResult

    Represents a resultant data of certificate revocation validation.

    Inheritance
    System.Object
    RevocationResult
    Namespace: Syncfusion.Pdf.Security
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public class RevocationResult : Object
    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 value indicating whether the CRL is revoked or not
    bool hasRevokedCrl = revocationResult.IsRevokedCRL;
    // 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 value indicating whether the CRL is revoked or not
    Dim hasRevokedCrl As Boolean = revocationResult.IsRevokedCRL
    ' Gets the OCSP revocation status
    Dim revocationStatus As RevocationStatus = revocationResult.OcspRevocationStatus
    ' Close the document
    document.Close(true)

    Constructors

    RevocationResult()

    Declaration
    public RevocationResult()

    Properties

    IsRevokedCRL

    Represents a resultant data of certificate revocation validation.

    Declaration
    public bool IsRevokedCRL { get; }
    Property Value
    Type
    System.Boolean
    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 value indicating whether the CRL is revoked or not
    bool hasRevokedCrl = revocationResult.IsRevokedCRL;
    // 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 value indicating whether the CRL is revoked or not
    Dim hasRevokedCrl As Boolean = revocationResult.IsRevokedCRL
    ' Gets the OCSP revocation status
    Dim revocationStatus As RevocationStatus = revocationResult.OcspRevocationStatus
    ' Close the document
    document.Close(true)

    OcspRevocationStatus

    Represents a resultant data of certificate revocation validation.

    Declaration
    public RevocationStatus OcspRevocationStatus { get; }
    Property Value
    Type
    RevocationStatus
    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)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved