# ICmsVerificationSession

Bounded CMS verification scope used when one document operation verifies several related CMS containers.

Interface 

`OfficeIMO.Security`

**Namespace**

`OfficeIMO.Security`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[IOfficeSecurityProvider.cs:96](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/IOfficeSecurityProvider.cs#L96)

**Implements**

`IDisposable`

**Modifiers**

abstract

Bounded CMS verification scope used when one document operation verifies several related CMS containers.

## 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.

### Returned or exposed by 1

- Method [IOfficeSecurityProvider.CreateCmsVerificationSession](/api/core/officeimo-security-iofficesecurityprovider/#method-createcmsverificationsession-officeimo-security-cmsverificationoptions)

Filter members 

Show inherited

## Methods

`public abstract CmsVerificationResult Verify(byte[] encodedCms, CertificateValidationPurpose signerCertificatePurpose = DocumentSigning)` [#](#method-verify-byte-officeimo-security-certificatevalidationpurpose)

Verifies one encapsulated CMS SignedData container within this operation's shared limits.

Parameters

**encodedCms byte[] required**

**signerCertificatePurpose OfficeIMO.Security.CertificateValidationPurpose = DocumentSigning optional**

Returns

`CmsVerificationResult`

`public abstract CmsVerificationResult VerifyDetached(byte[] encodedCms, byte[] detachedContent, CertificateValidationPurpose signerCertificatePurpose = DocumentSigning)` [#](#method-verifydetached-byte-byte-officeimo-security-certificatevalidationpurpose)

Verifies one detached CMS SignedData container within this operation's shared limits.

Parameters

**encodedCms byte[] required**

**detachedContent byte[] required**

**signerCertificatePurpose OfficeIMO.Security.CertificateValidationPurpose = DocumentSigning optional**

Returns

`CmsVerificationResult`

<!-- PowerForge markdown artifact sha256:8D7C0B260FCD89021972BC1DE62099EDD338D9F775E85BEE35B887DC1FF6A708 -->
