CmsSigner Class

An S/MIME signer.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public class CmsSigner
Inheritance
Object    CmsSigner

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.

Constructors

CmsSigner(X509Certificate2, SubjectIdentifierType) Initialize a new instance of the CmsSigner class.
CmsSigner(IEnumerableX509Certificate, AsymmetricKeyParameter, SubjectIdentifierType) Initialize a new instance of the CmsSigner class.
CmsSigner(Stream, String, SubjectIdentifierType) Initialize a new instance of the CmsSigner class.
CmsSigner(String, String, SubjectIdentifierType) Initialize a new instance of the CmsSigner class.
CmsSigner(X509Certificate, AsymmetricKeyParameter, SubjectIdentifierType) Initialize a new instance of the CmsSigner class.

Properties

Certificate Get the signer's certificate.
CertificateChain Get the certificate chain.
DigestAlgorithm Get or set the digest algorithm.
PrivateKey Get the private key.
RsaSignaturePadding Get or set the RSA signature padding.
SignedAttributes Get or set the signed attributes.
SignerIdentifierType Gets the signer identifier type.
UnsignedAttributes Get or set the unsigned attributes.

Methods

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
ToString Returns a string that represents the current object.
(Inherited from Object)

See Also