SignedCms 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
该 SignedCms 类支持对 CMS/PKCS #7 消息进行签名和验证。
public ref class SignedCms sealed
public sealed class SignedCms
type SignedCms = class
Public NotInheritable Class SignedCms
- 继承
-
SignedCms
注解
加密消息语法 RFC 为具有这些内容类型的 CMS/PKCS #7 消息指定以下 MIME 类型和文件扩展名。
| 内容类型 | MIME 类型 | 扩展 |
|---|---|---|
| envelopedData | application/pkcs7-mime | .p7m |
| signedData | application/pkcs7-signature | .p7s.p7c |
构造函数
| 名称 | 说明 |
|---|---|
| SignedCms() |
构造 SignedCms() 函数创建类的 SignedCms 实例。 |
| SignedCms(ContentInfo, Boolean) |
构造 SignedCms(ContentInfo, Boolean) 函数通过使用指定的内容信息作为内部内容和使用分离状态来创建类的实例 SignedCms 。 |
| SignedCms(ContentInfo) |
构造 SignedCms(ContentInfo) 函数使用指定的内容信息作为内部内容来创建类的 SignedCms 实例。 |
| SignedCms(SubjectIdentifierType, ContentInfo, Boolean) |
构造 SignedCms(SubjectIdentifierType, ContentInfo, Boolean) 函数通过使用指定的使用者标识符类型作为签名者的默认主题标识符类型、内容信息作为内部内容以及使用分离状态来创建类的实例 SignedCms 。 |
| SignedCms(SubjectIdentifierType, ContentInfo) |
构造 SignedCms(SubjectIdentifierType, ContentInfo) 函数使用指定的使用者标识符类型作为签名者的默认主题标识符类型,并将内容信息用作内部内容来创建类的实例 SignedCms 。 |
| SignedCms(SubjectIdentifierType) |
构造 SignedCms(SubjectIdentifierType) 函数通过使用指定的使用者标识符类型作为签名者的默认使用者标识符类型来创建类的 SignedCms 实例。 |
属性
| 名称 | 说明 |
|---|---|
| Certificates |
该 Certificates 属性检索与编码的 CMS/PKCS #7 消息关联的证书。 |
| ContentInfo |
该 ContentInfo 属性检索编码的 CMS/PKCS #7 消息的内部内容。 |
| Detached | |
| SignerInfos |
该 SignerInfos 属性检索 SignerInfoCollection 与 CMS/PKCS #7 消息关联的集合。 |
| Version |
该 Version 属性检索 CMS/PKCS #7 消息的版本。 |