CmsSigner 类
定义
表示 CMS/PKCS # 7 签名消息的潜在签名者。Represents a potential signer for a CMS/PKCS#7 signed message.
public ref class CmsSigner sealed
public sealed class CmsSigner
type CmsSigner = class
Public NotInheritable Class CmsSigner
- 继承
-
CmsSigner
构造函数
| CmsSigner() |
使用默认值初始化 CmsSigner 类的新实例。Initializes a new instance of the CmsSigner class with default values. |
| CmsSigner(CspParameters) |
基于保留的密钥来初始化 CmsSigner 类的新实例。Initializes a new instance of the CmsSigner class from a persisted key. |
| CmsSigner(SubjectIdentifierType) |
使用指定的使用者标识符类型来初始化 CmsSigner 类的新实例。Initializes a new instance of the CmsSigner class with a specified subject identifier type. |
| CmsSigner(SubjectIdentifierType, X509Certificate2) |
使用指定的签名者证书和使用者标识符类型来初始化 CmsSigner 类的新实例。Initializes a new instance of the CmsSigner class with a specified signer certificate and subject identifier type. |
| CmsSigner(SubjectIdentifierType, X509Certificate2, AsymmetricAlgorithm) |
使用指定的签名者证书、使用者标识符类型和私钥对象来初始化 CmsSigner 类的新实例。Initializes a new instance of the CmsSigner class with a specified signer certificate, subject identifier type, and private key object. |
| CmsSigner(X509Certificate2) |
使用指定的签名者证书来初始化 CmsSigner 类的新实例。Initializes a new instance of the CmsSigner class with a specified signer certificate. |
属性
| Certificate |
Certificate 属性设置或检索表示签名证书的 X509Certificate2 对象。The Certificate property sets or retrieves the X509Certificate2 object that represents the signing certificate. |
| Certificates |
获取与 WholeChain 和 ExcludeRoot 一起考虑的证书集合。Gets a collection of certificates which are considered with WholeChain and ExcludeRoot. |
| DigestAlgorithm |
获取或设置用于签名的哈希算法的算法标识符。Gets or sets the algorithm identifier for the hash algorithm to use with the signature. |
| IncludeOption |
获取或设置一个选项,该选项指示应将签名者证书的证书链嵌入已签名消息的部分。Gets or sets the option indicating how much of a the signer certificate's certificate chain should be embedded in the signed message. |
| PrivateKey |
获取或设置要在签名过程中使用的私钥对象。Gets or sets the private key object to use during signing. |
| SignedAttributes |
获取与此签名关联且受该签名保护的特性集合。Gets a collections of attributes to associate with this signature that are also protected by the signature. |
| SignerIdentifierType |
获取用于标识所使用的签名证书的方案。Gets the scheme to use for identifying which signing certificate was used. |
| UnsignedAttributes |
获取与此签名关联但不受该签名保护的特性集合。Gets a collections of attributes to associate with this signature that are not protected by the signature. |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |