Class RecipientInfo
A CMS RecipientInfo (RFC 5652 §6.2). Only KeyTransport (RSA) is fully supported; other types are parsed minimally.
Inherited Members
Namespace: DRIT.Mail.Rfc.Crypto.Cms
Assembly: DRIT.Mail.dll
Syntax
public sealed class RecipientInfo
Constructors
View SourceRecipientInfo(int, SignerIdentifier, AlgorithmIdentifier, byte[])
Initializes a new instance of the RecipientInfo class for a KeyTransRecipientInfo.
Declaration
public RecipientInfo(int version, SignerIdentifier rid, AlgorithmIdentifier keyEncryptionAlgorithm, byte[] encryptedKey)
Parameters
| Type | Name | Description |
|---|---|---|
| int | version | |
| SignerIdentifier | rid | |
| AlgorithmIdentifier | keyEncryptionAlgorithm | |
| byte[] | encryptedKey |
Properties
View SourceEncryptedKey
Gets the encrypted content-encryption key.
Declaration
public byte[] EncryptedKey { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |
KeyEncryptionAlgorithm
Gets the key-encryption algorithm (e.g., RSA).
Declaration
public AlgorithmIdentifier KeyEncryptionAlgorithm { get; }
Property Value
| Type | Description |
|---|---|
| AlgorithmIdentifier |
Rid
Gets the recipient identifier.
Declaration
public SignerIdentifier Rid { get; }
Property Value
| Type | Description |
|---|---|
| SignerIdentifier |
Type
Gets the recipient info type.
Declaration
public RecipientInfoType Type { get; }
Property Value
| Type | Description |
|---|---|
| RecipientInfoType |
Version
Gets the CMS version.
Declaration
public int Version { get; }
Property Value
| Type | Description |
|---|---|
| int |