SmimeSignature Class

The signature of a signer of an S/MIME entity, and the result of its verification.

public sealed class SmimeSignature

Properties

NameDescription
CertificateGets the certificate of the signer, or null when the signature does not include it and it is not in the store given to the verification.
DigestAlgorithmGets the identifier (OID) of the digest algorithm of the signature, such as 2.16.840.1.101.3.4.2.1 for SHA-256.
ErrorGets the reason the signature is not valid, or null when it is valid.
IsValidGets whether the signature is valid: the content was not modified, and the certificate is valid when the verification checks it.
SigningTimeGets the date and time the signer says the content was signed (the signing time attribute), or null.

Gets the certificate of the signer, or null when the signature does not include it and it is not in the store given to the verification.

public X509Certificate2? Certificate { get; }

Property value

X509Certificate2?

DigestAlgorithm

SmimeSignature.cs

Gets the identifier (OID) of the digest algorithm of the signature, such as 2.16.840.1.101.3.4.2.1 for SHA-256.

public string? DigestAlgorithm { get; }

Property value

string?

Gets the reason the signature is not valid, or null when it is valid.

public string? Error { get; }

Property value

string?

Gets whether the signature is valid: the content was not modified, and the certificate is valid when the verification checks it.

public bool IsValid { get; }

Property value

bool

Gets the date and time the signer says the content was signed (the signing time attribute), or null.

public DateTimeOffset? SigningTime { get; }

Property value

DateTimeOffset?