# PdfCmsSignatureCryptographyProvider

Maps shared CMS, RFC 3161, and X.509 validation into PDF signature reports.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfCmsSignatureCryptographyProvider.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfCmsSignatureCryptographyProvider.cs#L13)

**Implements**

`IPdfSignatureCryptographyProvider`

**Modifiers**

sealed

Maps shared CMS, RFC 3161, and X.509 validation into PDF signature reports.

## Inheritance

- object
- PdfCmsSignatureCryptographyProvider

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Encrypt, Decrypt, and Sign PDFs](/docs/pdf/encrypt-sign/) Guide
  
  Encrypt PDFs with passwords and permissions, decrypt protected files, sign with a certificate and validate signatures with OfficeIMO.Pdf.
- [PDF Security and Digital Signatures](/docs/pdf/security/) Guide
  
  Encrypt PDFs, inspect signature structure, verify CMS signatures, preserve signed revisions, and enrich long-term validation evidence.
- [Signatures and Encryption](/docs/security/) Guide
  
  Sign and verify documents and data, validate certificates and encrypt for recipients with OfficeIMO.Security: CMS, S/MIME, RFC 3161, X.509 and XML.

## Usage

Explore 1 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.

### Accepted by parameters 1

- Method [PdfLongTermValidationEnricher.FetchAndEnrichAsync](/api/pdf/officeimo-pdf-pdflongtermvalidationenricher/#method-fetchandenrichasync-byte-int32-officeimo-pdf-pdfcmssignaturecryptographyprovider-officeimo-security-icertificaterevocationfetcher-officeimo-pdf-pdfloadoptions-threading-cancellationtoken) parameter `cryptographyProvider`

Filter members 

Show inherited

## Constructors

`public PdfCmsSignatureCryptographyProvider(IOfficeSecurityProvider securityProvider, CmsVerificationOptions? options = null)` [#](#constructor-ctor-officeimo-security-iofficesecurityprovider-officeimo-security-cmsverificationoptions)

[PdfCmsSignatureCryptographyProvider.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfCmsSignatureCryptographyProvider.cs#L13)

Creates a PDF adapter over the shared OfficeIMO security policy.

Parameters

**securityProvider OfficeIMO.Security.IOfficeSecurityProvider required**

**options OfficeIMO.Security.CmsVerificationOptions? = null optional**

## Methods

`public PdfSignatureCryptographicResult Verify(PdfSignatureCryptographyInput input)` [#](#method-verify-officeimo-pdf-pdfsignaturecryptographyinput)

[PdfCmsSignatureCryptographyProvider.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfCmsSignatureCryptographyProvider.cs#L72)

Validates cryptographic evidence prepared by the dependency-free PDF parser.

Parameters

**input OfficeIMO.Pdf.PdfSignatureCryptographyInput required**

Returns

`PdfSignatureCryptographicResult`

## 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 string Name { get; }` [#](#property-name)

[PdfCmsSignatureCryptographyProvider.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfCmsSignatureCryptographyProvider.cs#L22)

Stable provider name included in signature reports.

`public CertificateRevocationPolicy RevocationPolicy { get; init; }` [#](#property-revocationpolicy)

[PdfCmsSignatureCryptographyProvider.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Signatures/PdfCmsSignatureCryptographyProvider.cs#L30)

Where OCSP responses and CRLs come from. Defaults to CertificateRevocationPolicy.EmbeddedOnly: only data carried by the signature and the document's DSS is used and validation never starts network retrieval. The online policies use [PdfCmsSignatureCryptographyProvider.RevocationFetcher](/api/pdf/officeimo-pdf-pdfcmssignaturecryptographyprovider/).

`public ICertificateRevocationFetcher? RevocationFetcher { get; init; }` [#](#property-revocationfetcher)

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

Fetcher used by the online revocation policies, such as CertificateRevocationFetcher. Without one, certificates that embedded data does not settle are reported as indeterminate.

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