# CmsDecryptionResult

Result of attempting to decrypt CMS EnvelopedData for one certificate.

Class 

`OfficeIMO.Security`

**Namespace**

`OfficeIMO.Security`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[CmsEnvelopedDataModels.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/CmsEnvelopedDataModels.cs#L29)

**Modifiers**

sealed

Result of attempting to decrypt CMS EnvelopedData for one certificate.

## Inheritance

- object
- CmsDecryptionResult

## 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.DecryptCms](/api/core/officeimo-security-iofficesecurityprovider/#method-decryptcms-byte-security-cryptography-x509certificates-x509certificate2-officeimo-security-cmsenvelopeoptions)

Filter members 

Show inherited

## Constructors

`public CmsDecryptionResult(bool parsed, bool decrypted, byte[]? content, string? contentEncryptionAlgorithmOid, string? keyEncryptionAlgorithmOid, IReadOnlyList<SecurityFinding> findings)` [#](#constructor-ctor-boolean-boolean-byte-string-string-collections-generic-ireadonlylist-officeimo-security-securityfinding)

[CmsEnvelopedDataModels.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/CmsEnvelopedDataModels.cs#L29)

Creates CMS decryption evidence for a provider implementation.

Parameters

**parsed bool required**

**decrypted bool required**

**content byte[]? required**

**contentEncryptionAlgorithmOid string? required**

**keyEncryptionAlgorithmOid string? required**

**findings System.Collections.Generic.IReadOnlyList<OfficeIMO.Security.SecurityFinding> required**

## 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 bool Parsed { get; }` [#](#property-parsed)

[CmsEnvelopedDataModels.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/CmsEnvelopedDataModels.cs#L45)

Whether the EnvelopedData container was decoded.

`public bool Decrypted { get; }` [#](#property-decrypted)

[CmsEnvelopedDataModels.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/CmsEnvelopedDataModels.cs#L47)

Whether a matching recipient was successfully decrypted.

`public byte[]? Content { get; }` [#](#property-content)

[CmsEnvelopedDataModels.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/CmsEnvelopedDataModels.cs#L49)

Cloned plaintext content when decryption succeeded.

`public string? ContentEncryptionAlgorithmOid { get; }` [#](#property-contentencryptionalgorithmoid)

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

CMS content-encryption algorithm object identifier.

`public string? KeyEncryptionAlgorithmOid { get; }` [#](#property-keyencryptionalgorithmoid)

[CmsEnvelopedDataModels.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/CmsEnvelopedDataModels.cs#L53)

Recipient key-encryption algorithm object identifier.

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

[CmsEnvelopedDataModels.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Security/CmsEnvelopedDataModels.cs#L55)

Structured processing findings.

<!-- PowerForge markdown artifact sha256:2A5BF150E7A5049C9CA68F5586E4E406529A8B1F6ACF2EBF3A62F2A50195FE18 -->
