Class CpCmsSigner
Assembly: CryptoPro.Security.Cryptography.Pkcs.dll
Syntax
public sealed class CpCmsSigner
Constructors
CpCmsSigner()
Declaration
CpCmsSigner(CpX509Certificate2)
Declaration
public CpCmsSigner(CpX509Certificate2 certificate)
Parameters
CpCmsSigner(SubjectIdentifierType)
Declaration
public CpCmsSigner(SubjectIdentifierType signerIdentifierType)
Parameters
CpCmsSigner(SubjectIdentifierType, CpX509Certificate2)
Declaration
public CpCmsSigner(SubjectIdentifierType signerIdentifierType, CpX509Certificate2 certificate)
Parameters
CpCmsSigner(SubjectIdentifierType, CpX509Certificate2, AsymmetricAlgorithm)
Declaration
public CpCmsSigner(SubjectIdentifierType signerIdentifierType, CpX509Certificate2 certificate, AsymmetricAlgorithm privateKey)
Parameters
CpCmsSigner(SubjectIdentifierType, CpX509Certificate2, RSA, RSASignaturePadding)
Initializes a new instance of the CmsSigner class with a specified signer
certificate, subject identifier type, private key object, and RSA signature padding.
Declaration
public CpCmsSigner(SubjectIdentifierType signerIdentifierType, CpX509Certificate2 certificate, RSA privateKey, RSASignaturePadding signaturePadding)
Parameters
Type |
Name |
Description |
SubjectIdentifierType |
signerIdentifierType |
One of the enumeration values that specifies the scheme to use for identifying
which signing certificate was used.
|
CpX509Certificate2 |
certificate |
The certificate whose private key will be used to sign a message.
|
RSA |
privateKey |
The private key object to use when signing the message.
|
RSASignaturePadding |
signaturePadding |
The RSA signature padding to use.
|
Properties
Certificate
Declaration
public CpX509Certificate2 Certificate { get; set; }
Property Value
Certificates
Declaration
public CpX509Certificate2Collection Certificates { get; }
Property Value
DigestAlgorithm
Declaration
public Oid DigestAlgorithm { get; set; }
Property Value
IncludeOption
Declaration
public X509IncludeOption IncludeOption { get; set; }
Property Value
PrivateKey
Declaration
public AsymmetricAlgorithm PrivateKey { get; set; }
Property Value
SignaturePadding
Gets or sets the RSA signature padding to use.
Declaration
public RSASignaturePadding SignaturePadding { get; set; }
Property Value
SignedAttributes
Declaration
public CryptographicAttributeObjectCollection SignedAttributes { get; }
Property Value
SignerIdentifierType
Declaration
public SubjectIdentifierType SignerIdentifierType { get; set; }
Property Value
UnsignedAttributes
Declaration
public CryptographicAttributeObjectCollection UnsignedAttributes { get; }
Property Value