# PdfSignatureValidationResult

Lightweight structural validation result for one PDF signature value.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfSignatureValidationResult.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfSignatureValidationResult.cs#L37)

**Modifiers**

sealed

Lightweight structural validation result for one PDF signature value.

## Inheritance

- object
- PdfSignatureValidationResult

## Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Property [PdfSignatureMutationResult.After](/api/pdf/officeimo-pdf-pdfsignaturemutationresult/#property-after)
- Property [PdfSignatureMutationResult.Before](/api/pdf/officeimo-pdf-pdfsignaturemutationresult/#property-before)
- Property [PdfSignatureValidationReport.Signatures](/api/pdf/officeimo-pdf-pdfsignaturevalidationreport/#property-signatures)

### Accepted by parameters 1

- Method [PdfLongTermValidationEnricher.EnrichAsync](/api/pdf/officeimo-pdf-pdflongtermvalidationenricher/#method-enrichasync-byte-officeimo-pdf-pdflongtermvalidationevidence-officeimo-pdf-ipdfsignaturecryptographyprovider-func-officeimo-pdf-pdfsignaturevalidationresult-system-threading-cancellationtoken-system-threading-tasks-task-officeimo-pdf-pdflongtermvalidationevidence-officeimo-pdf-pdfloadoptions-threading-cancellationtoken) parameter `fetchEvidence`

Filter members 

Show inherited

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public PdfPadesLevel PadesLevel { get; }` [#](#property-padeslevel)

[PdfSignatureValidationResult.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfSignatureValidationResult.cs#L37)

PAdES baseline level established by cryptographic validation. [PdfPadesLevel.None](/api/pdf/officeimo-pdf-pdfpadeslevel/) for document time-stamps and for signatures validated without a cryptography provider. When a level is not reached, a pades-baseline-*-not-reached finding explains why.

`public PdfSignatureInfo Signature { get; }` [#](#property-signature)

[PdfSignatureValidationResult.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfSignatureValidationResult.cs#L40)

Signature metadata read from the PDF.

`public bool HasCompleteByteRangeShape { get; }` [#](#property-hascompletebyterangeshape)

[PdfSignatureValidationResult.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfSignatureValidationResult.cs#L43)

True when /ByteRange contains the common four numeric values used by detached PDF signatures.

`public bool ByteRangeSegmentsAreOrdered { get; }` [#](#property-byterangesegmentsareordered)

[PdfSignatureValidationResult.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfSignatureValidationResult.cs#L46)

True when the parsed byte ranges are non-negative, non-overlapping, and ordered.

`public bool ByteRangeCoversEndOfFile { get; }` [#](#property-byterangecoversendoffile)

[PdfSignatureValidationResult.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfSignatureValidationResult.cs#L49)

True when the final /ByteRange segment ends at the end of the file.

`public long? ByteRangeCoveredBytes { get; }` [#](#property-byterangecoveredbytes)

[PdfSignatureValidationResult.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfSignatureValidationResult.cs#L52)

Total bytes covered by the parsed /ByteRange values, when readable.

`public long? ByteRangeGapStart { get; }` [#](#property-byterangegapstart)

[PdfSignatureValidationResult.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfSignatureValidationResult.cs#L55)

Start of the unsigned gap between the first two /ByteRange segments, when readable.

`public long? ByteRangeGapLength { get; }` [#](#property-byterangegaplength)

[PdfSignatureValidationResult.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfSignatureValidationResult.cs#L58)

Length of the unsigned gap between the first two /ByteRange segments, when readable.

`public long? UnsignedByteCount { get; }` [#](#property-unsignedbytecount)

[PdfSignatureValidationResult.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfSignatureValidationResult.cs#L61)

Bytes outside the parsed signed byte ranges, when readable.

`public double? ByteRangeCoverageRatio { get; }` [#](#property-byterangecoverageratio)

[PdfSignatureValidationResult.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfSignatureValidationResult.cs#L64)

Fraction of input bytes covered by the parsed /ByteRange values, when readable.

`public PdfSignatureCryptographicResult? CryptographicResult { get; }` [#](#property-cryptographicresult)

[PdfSignatureValidationResult.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfSignatureValidationResult.cs#L67)

Provider-owned CMS, digest, trust, timestamp, and revocation result, when requested.

`public bool HasCryptographicResult { get; }` [#](#property-hascryptographicresult)

[PdfSignatureValidationResult.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfSignatureValidationResult.cs#L70)

True when an optional provider performed cryptographic validation for this signature.

`public bool? ByteRangeGapMatchesContents { get; }` [#](#property-byterangegapmatchescontents)

[PdfSignatureValidationResult.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfSignatureValidationResult.cs#L74)

True when the unsigned /ByteRange gap length matches the full /Contents token span, when both are readable.

`public IReadOnlyList<PdfSignatureValidationFinding> Findings { get; }` [#](#property-findings)

[PdfSignatureValidationResult.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfSignatureValidationResult.cs#L79)

Findings for this signature value.

`public bool IsStructurallyValid { get; }` [#](#property-isstructurallyvalid)

[PdfSignatureValidationResult.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfSignatureValidationResult.cs#L82)

True when this signature has no structural validation errors.

<!-- PowerForge markdown artifact sha256:D0583CAB19BD63BB3EED94DE2EF8AA517C74110B9C68A1354323F509A53BD885 -->
