语言

CmsRecipient 类

定义

该 CmsRecipient 类定义 CMS/PKCS #7 消息的收件人。

public ref class CmsRecipient sealed
public sealed class CmsRecipient
type CmsRecipient = class
Public NotInheritable Class CmsRecipient
继承
CmsRecipient

构造函数

名称 说明
CmsRecipient(SubjectIdentifierType, X509Certificate2, RSAEncryptionPadding)

使用指定的 RSA 证书、RSA 加密填充和使用者标识符初始化类的新实例 CmsRecipient 。

CmsRecipient(SubjectIdentifierType, X509Certificate2)

使用公钥算法的默认加密模式,使用指定的证书和收件人标识符类型初始化类的新实例 CmsRecipient 。

CmsRecipient(X509Certificate2, RSAEncryptionPadding)

使用IssuerAndSerialNumber使用者标识符使用指定的 RSA 证书和 RSA 加密填充初始化类的新实例CmsRecipient。

CmsRecipient(X509Certificate2)

使用指定证书初始化类的新实例 CmsRecipient ,并使用公钥算法和 IssuerAndSerialNumber 使用者标识符的默认加密模式。

属性

名称 说明
Certificate

获取此收件人加密时要使用的证书。

RecipientIdentifierType

获取用于标识使用哪个收件人证书的方案。

RSAEncryptionPadding

获取此收件人加密时要使用的 RSA 加密填充。

方法

名称 说明
CreateForKeyEncapsulation(SubjectIdentifierType, X509Certificate2, ReadOnlySpan<Byte>)

该 CmsRecipient 类定义 CMS/PKCS #7 消息的收件人。

CreateForKeyEncapsulation(X509Certificate2, ReadOnlySpan<Byte>)

该 CmsRecipient 类定义 CMS/PKCS #7 消息的收件人。

Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type。

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于