Class SignatureStatus
Specifies the certificate's verification status.
Inheritance
System.Object
SignatureStatus
Namespace: Syncfusion.Pdf.Security
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public sealed class SignatureStatus : 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 signature validation status
SignatureStatus status = result.SignatureStatus;
// 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 signature validation status
Dim status As SignatureStatus = result.SignatureStatus
' Close the document
document.Close(true)
Fields
Invalid
Specifies invalid status.
Declaration
public const SignatureStatus Invalid
Field Value
Type |
---|
SignatureStatus |
Unknown
Specifies unknown status.
Declaration
public const SignatureStatus Unknown
Field Value
Type |
---|
SignatureStatus |
Valid
Specifies valid status.
Declaration
public const SignatureStatus Valid
Field Value
Type |
---|
SignatureStatus |