Click or drag to resize
MimeKit

CmsSigner Class

An S/MIME signer.
Inheritance Hierarchy
SystemObject
  MimeKit.CryptographyCmsSigner

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public class CmsSigner

The CmsSigner type exposes the following members.

Constructors
 NameDescription
Public methodCmsSigner(X509Certificate2, SubjectIdentifierType) Initialize a new instance of the CmsSigner class.
Public methodCmsSigner(IEnumerableX509Certificate, AsymmetricKeyParameter, SubjectIdentifierType) Initialize a new instance of the CmsSigner class.
Public methodCmsSigner(Stream, String, SubjectIdentifierType) Initialize a new instance of the CmsSigner class.
Public methodCmsSigner(String, String, SubjectIdentifierType) Initialize a new instance of the CmsSigner class.
Public methodCmsSigner(X509Certificate, AsymmetricKeyParameter, SubjectIdentifierType) Initialize a new instance of the CmsSigner class.
Top
Properties
 NameDescription
Public propertyCertificate Get the signer's certificate.
Public propertyCertificateChain Get the certificate chain.
Public propertyDigestAlgorithm Get or set the digest algorithm.
Public propertyPrivateKey Get the private key.
Public propertyRsaSignaturePadding Get or set the RSA signature padding.
Public propertySignedAttributes Get or set the signed attributes.
Public propertySignerIdentifierType Gets the signer identifier type.
Public propertyUnsignedAttributes Get or set the unsigned attributes.
Top
Methods
 NameDescription
Public methodEquals
(Inherited from Object)
Protected methodFinalize
(Inherited from Object)
Public methodGetHashCode
(Inherited from Object)
Public methodGetType
(Inherited from Object)
Protected methodMemberwiseClone
(Inherited from Object)
Public methodToString
(Inherited from Object)
Top
Remarks
If the X.509 certificate is known for the signer, you may wish to use a CmsSigner as opposed to having the CryptographyContext do its own certificate lookup for the signer's MailboxAddress.
See Also