SignedCms 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 SignedCms 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| SignedCms() |
构造 SignedCms() 函数创建类的 SignedCms 实例。 |
| SignedCms(ContentInfo) |
构造 SignedCms(ContentInfo) 函数使用指定的内容信息作为内部内容来创建类的 SignedCms 实例。 |
| SignedCms(SubjectIdentifierType) |
构造 SignedCms(SubjectIdentifierType) 函数通过使用指定的使用者标识符类型作为签名者的默认使用者标识符类型来创建类的 SignedCms 实例。 |
| SignedCms(ContentInfo, Boolean) |
构造 SignedCms(ContentInfo, Boolean) 函数通过使用指定的内容信息作为内部内容和使用分离状态来创建类的实例 SignedCms 。 |
| SignedCms(SubjectIdentifierType, ContentInfo) |
构造 SignedCms(SubjectIdentifierType, ContentInfo) 函数使用指定的使用者标识符类型作为签名者的默认主题标识符类型,并将内容信息用作内部内容来创建类的实例 SignedCms 。 |
| SignedCms(SubjectIdentifierType, ContentInfo, Boolean) |
构造 SignedCms(SubjectIdentifierType, ContentInfo, Boolean) 函数通过使用指定的使用者标识符类型作为签名者的默认主题标识符类型、内容信息作为内部内容以及使用分离状态来创建类的实例 SignedCms 。 |
SignedCms()
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
构造 SignedCms() 函数创建类的 SignedCms 实例。
public:
SignedCms();
public SignedCms();
Public Sub New ()
例外
空引用被传递给不接受该方法作为有效参数的方法。
注解
该 SignedCms 类具有以下默认属性值。
| 财产 | 默认值 |
|---|---|
| ContentInfo | 1.2.840.113549.1.7.1 (数据)长度:零 |
| Detached | 分离状态: false 签名的内容包含在 CMS/PKCS #7 消息中,以及签名信息。 |
签名者的默认值 SubjectIdentifierType 为 SubjectIdentifierType.IssuerAndSerialNumber。
如果分离状态为 false (默认值),则签名内容将包含在 CMS/PKCS #7 消息中,以及签名信息。 如果分离状态为 true,则无法解码 S/MIME 消息的客户端仍可以看到消息的内容(如果单独发送)。 这在存档应用程序中可能很有用,该应用程序存档消息内容,无论消息发送方是否可以验证是否真实。
适用于
SignedCms(ContentInfo)
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
构造 SignedCms(ContentInfo) 函数使用指定的内容信息作为内部内容来创建类的 SignedCms 实例。
public:
SignedCms(System::Security::Cryptography::Pkcs::ContentInfo ^ contentInfo);
public SignedCms(System.Security.Cryptography.Pkcs.ContentInfo contentInfo);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.ContentInfo -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (contentInfo As ContentInfo)
参数
- contentInfo
- ContentInfo
一个 ContentInfo 对象,该对象将内容信息指定为消息的内部内容 SignedCms 。
例外
空引用被传递给不接受该方法作为有效参数的方法。
注解
有关用于此构造函数的默认属性值,请参阅 SignedCms()。
如果分离状态为 false (默认值),则签名的内容将包含在 CMS/PKCS #7 消息中,以及签名信息。 如果分离状态为 true,则无法解码 S/MIME 消息的客户端仍可以看到消息的内容(如果单独发送)。 这在存档应用程序中可能很有用,该应用程序可存档消息内容,无论消息发送者是否可以验证其真实性。
适用于
SignedCms(SubjectIdentifierType)
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
构造 SignedCms(SubjectIdentifierType) 函数通过使用指定的使用者标识符类型作为签名者的默认使用者标识符类型来创建类的 SignedCms 实例。
public:
SignedCms(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType);
public SignedCms(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.SubjectIdentifierType -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (signerIdentifierType As SubjectIdentifierType)
参数
- signerIdentifierType
- SubjectIdentifierType
一个 SubjectIdentifierType 成员,指定签名者的默认使用者标识符类型。
例外
空引用被传递给不接受该方法作为有效参数的方法。
注解
有关用于此构造函数的默认属性值,请参阅 SignedCms()。
如果分离状态为 false (默认值),则签名的内容将包含在 CMS/PKCS #7 消息中,以及签名信息。 如果分离状态为 true,则无法解码 S/MIME 消息的客户端仍可以看到消息的内容(如果单独发送)。 这在存档应用程序中可能很有用,该应用程序可存档消息内容,无论消息发送者是否可以验证其真实性。
适用于
SignedCms(ContentInfo, Boolean)
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
构造 SignedCms(ContentInfo, Boolean) 函数通过使用指定的内容信息作为内部内容和使用分离状态来创建类的实例 SignedCms 。
public:
SignedCms(System::Security::Cryptography::Pkcs::ContentInfo ^ contentInfo, bool detached);
public SignedCms(System.Security.Cryptography.Pkcs.ContentInfo contentInfo, bool detached);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.ContentInfo * bool -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (contentInfo As ContentInfo, detached As Boolean)
参数
- contentInfo
- ContentInfo
一个 ContentInfo 对象,该对象将内容信息指定为消息的内部内容 SignedCms 。
- detached
- Boolean
一个 Boolean 值,该值指定对象 SignedCms 是否用于分离签名。
detached如果是true,则分离签名。
detached如果是false,则不分离签名。
例外
空引用被传递给不接受该方法作为有效参数的方法。
注解
有关用于此构造函数的默认属性值,请参阅 SignedCms()。
如果分离状态为 false (默认值),则签名的内容将包含在 CMS/PKCS #7 消息中,以及签名信息。 如果分离状态为 true,则无法解码 S/MIME 消息的客户端仍可以看到消息的内容(如果单独发送)。 这在存档应用程序中可能很有用,该应用程序可存档消息内容,无论消息发送者是否可以验证其真实性。
适用于
SignedCms(SubjectIdentifierType, ContentInfo)
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
- Source:
- SignedCms.CtorOverloads.cs
构造 SignedCms(SubjectIdentifierType, ContentInfo) 函数使用指定的使用者标识符类型作为签名者的默认主题标识符类型,并将内容信息用作内部内容来创建类的实例 SignedCms 。
public:
SignedCms(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType, System::Security::Cryptography::Pkcs::ContentInfo ^ contentInfo);
public SignedCms(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.Pkcs.ContentInfo contentInfo);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.Pkcs.ContentInfo -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (signerIdentifierType As SubjectIdentifierType, contentInfo As ContentInfo)
参数
- signerIdentifierType
- SubjectIdentifierType
一个 SubjectIdentifierType 成员,指定签名者的默认使用者标识符类型。
- contentInfo
- ContentInfo
一个 ContentInfo 对象,该对象将内容信息指定为消息的内部内容 SignedCms 。
例外
空引用被传递给不接受该方法作为有效参数的方法。
注解
有关用于此构造函数的默认属性值,请参阅 SignedCms()。
如果分离状态为 false (默认值),则签名的内容将包含在 CMS/PKCS #7 消息中,以及签名信息。 如果分离状态为 true,则无法解码 S/MIME 消息的客户端仍可以看到消息的内容(如果单独发送)。 这在存档应用程序中可能很有用,该应用程序可存档消息内容,无论消息发送者是否可以验证其真实性。
适用于
SignedCms(SubjectIdentifierType, ContentInfo, Boolean)
- Source:
- SignedCms.cs
- Source:
- SignedCms.cs
- Source:
- SignedCms.cs
- Source:
- SignedCms.cs
- Source:
- SignedCms.cs
- Source:
- SignedCms.cs
- Source:
- SignedCms.cs
- Source:
- SignedCms.cs
构造 SignedCms(SubjectIdentifierType, ContentInfo, Boolean) 函数通过使用指定的使用者标识符类型作为签名者的默认主题标识符类型、内容信息作为内部内容以及使用分离状态来创建类的实例 SignedCms 。
public:
SignedCms(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType, System::Security::Cryptography::Pkcs::ContentInfo ^ contentInfo, bool detached);
public SignedCms(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.Pkcs.ContentInfo contentInfo, bool detached);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.Pkcs.ContentInfo * bool -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (signerIdentifierType As SubjectIdentifierType, contentInfo As ContentInfo, detached As Boolean)
参数
- signerIdentifierType
- SubjectIdentifierType
一个 SubjectIdentifierType 成员,指定签名者的默认使用者标识符类型。
- contentInfo
- ContentInfo
一个 ContentInfo 对象,该对象将内容信息指定为消息的内部内容 SignedCms 。
例外
空引用被传递给不接受该方法作为有效参数的方法。
注解
如果分离状态为 false (默认值),则签名的内容将包含在 CMS/PKCS #7 消息中,以及签名信息。 如果分离状态为 true,则无法解码 S/MIME 消息的客户端仍可以看到消息的内容(如果单独发送)。 这在存档应用程序中可能很有用,用于存档消息内容,无论消息发送者是否可以验证消息发送者是否能够验证真实性。