# CmsSignedDataVerifier

Verifies encapsulated and detached CMS SignedData with explicit trust-policy results.

Class 

`OfficeIMO.Security`

**Namespace**

`OfficeIMO.Security`

**Assembly**

`OfficeIMO.Security`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[CmsSignedDataVerifier.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Security/CmsSignedDataVerifier.cs#L18)

**Modifiers**

static

Verifies encapsulated and detached CMS SignedData with explicit trust-policy results.

## Inheritance

- object
- CmsSignedDataVerifier

Filter members 

Show inherited

## Methods

`public static CmsVerificationResult Verify(byte[] encodedCms, CmsVerificationOptions? options = null)` [#](#method-verify-byte-officeimo-security-cmsverificationoptions)

[CmsSignedDataVerifier.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Security/CmsSignedDataVerifier.cs#L18)

Verifies an encapsulated CMS SignedData object.

Parameters

**encodedCms byte[] required**

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

Returns

`CmsVerificationResult`

`public static CmsVerificationResult VerifyDetached(byte[] encodedCms, byte[] detachedContent, CmsVerificationOptions? options = null)` [#](#method-verifydetached-byte-byte-officeimo-security-cmsverificationoptions)

[CmsSignedDataVerifier.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Security/CmsSignedDataVerifier.cs#L51)

Verifies a detached CMS SignedData object against the exact supplied content bytes.

Parameters

**encodedCms byte[] required**

**detachedContent byte[] required**

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

Returns

`CmsVerificationResult`

## 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?`

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