Skip to main content
All docs
V24.1

SignatureValidationOptions.ValidationFlags Property

Specifies the validation flags.

Namespace: DevExpress.Office.DigitalSignatures

Assembly: DevExpress.Docs.v24.1.dll

NuGet Package: DevExpress.Document.Processor

Declaration

public ValidationFlags ValidationFlags { get; set; }

Property Value

Type Description
ValidationFlags

An enumeration value that indicates a validation flag.

Available values:

Name Description
None

No flags.

ValidateSignature

Validate a signature.

ValidateSignatureCertificate

Validate the signature certificate.

ValidatePackageIntegrity

Validate package integrity.

ValidateTimestamp

Validate a timestamp.

ValidateTimestampCertificate

Validate the timestamp certificate.

All

All flags.

Remarks

Use the ValidationFlags property to exclude validation steps. The code sample below excludes signature and timestamp certificate validation.

using DevExpress.Office.DigitalSignatures;

private static void ValidateSignature(string path)
{
    DocumentSigner validator = new DocumentSigner();

    SignatureValidationOptions validationOptions =
     new SignatureValidationOptions();
    validationOptions.ValidationFlags =
     ~ValidationFlags.ValidateSignatureCertificate & ~ValidationFlags.ValidateTimestampCertificate;

    validator.Validate(path, validationOptions);
}

The following code snippets (auto-collected from DevExpress Examples) contain references to the ValidationFlags property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also