CmsSigner 类

定义

表示 CMS/PKCS#7 签名消息的潜在签名者。

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

构造函数

名称 说明
CmsSigner()

使用默认值初始化类的新实例 CmsSigner

CmsSigner(CspParameters)
已过时.

从持久化键初始化类的新实例 CmsSigner

CmsSigner(SubjectIdentifierType, X509Certificate2, AsymmetricAlgorithm)

使用指定的签名者证书、使用者标识符类型和私钥对象初始化类的新实例 CmsSigner

CmsSigner(SubjectIdentifierType, X509Certificate2, CompositeMLDsa)

表示 CMS/PKCS#7 签名消息的潜在签名者。

CmsSigner(SubjectIdentifierType, X509Certificate2, MLDsa)

表示 CMS/PKCS#7 签名消息的潜在签名者。

CmsSigner(SubjectIdentifierType, X509Certificate2, RSA, RSASignaturePadding)

使用指定的签名者证书、使用者标识符类型、私钥对象和 RSA 签名填充初始化 CmsSigner 类的新实例。

CmsSigner(SubjectIdentifierType, X509Certificate2, SlhDsa)

表示 CMS/PKCS#7 签名消息的潜在签名者。

CmsSigner(SubjectIdentifierType, X509Certificate2)

使用指定的签名者证书和使用者标识符类型初始化类的新实例 CmsSigner

CmsSigner(SubjectIdentifierType)

使用指定的使用者标识符类型初始化类的新实例 CmsSigner

CmsSigner(X509Certificate2)

使用指定的签名者证书初始化类的新实例 CmsSigner

属性

名称 说明
Certificate

属性 Certificate 设置或检索 X509Certificate2 表示签名证书的对象。

Certificates

获取考虑使用 WholeChainExcludeRoot. 的证书的集合。

DigestAlgorithm

获取或设置用于签名的哈希算法的算法标识符。

IncludeOption

获取或设置一个选项,该值指示签名者证书的证书链应嵌入到签名的消息中。

PrivateKey

获取或设置在签名期间要使用的私钥对象。

SignaturePadding

获取或设置要使用的 RSA 签名填充。

SignedAttributes

获取要与此签名关联的属性集合,该签名也受签名保护。

SignerIdentifierType

获取用于标识使用哪个签名证书的方案。

UnsignedAttributes

获取要与此签名关联的属性集合,这些属性不受签名保护。

方法

名称 说明
Equals(Object)

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

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ToString()

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

(继承自 Object)

适用于