• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class SMimeSignatureInfo

Information about a single S/MIME signature, produced by SMimeVerifier.

Inheritance
object
SMimeSignatureInfo
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.SMime
Assembly: DRIT.Mail.dll
Syntax
public sealed class SMimeSignatureInfo

Constructors

View Source

SMimeSignatureInfo(SMimeSignatureStatus, string?, X509CertificateInfo?, SMimeDigestAlgorithm, DateTimeOffset?, string?)

Initializes a new instance of the SMimeSignatureInfo class.

Declaration
public SMimeSignatureInfo(SMimeSignatureStatus status, string? failureReason, X509CertificateInfo? signerCertificate, SMimeDigestAlgorithm digestAlgorithm, DateTimeOffset? signingTime, string? signerSubject)
Parameters
Type Name Description
SMimeSignatureStatus status
string failureReason
X509CertificateInfo signerCertificate
SMimeDigestAlgorithm digestAlgorithm
DateTimeOffset? signingTime
string signerSubject

Properties

View Source

DigestAlgorithm

Gets the digest algorithm from the SignerInfo.

Declaration
public SMimeDigestAlgorithm DigestAlgorithm { get; }
Property Value
Type Description
SMimeDigestAlgorithm
View Source

FailureReason

Gets a human-readable description of why verification failed, or null when the signature is valid.

Declaration
public string? FailureReason { get; }
Property Value
Type Description
string
View Source

IsValid

Gets a value indicating whether this signature is valid.

Declaration
public bool IsValid { get; }
Property Value
Type Description
bool
View Source

SignerCertificate

Gets the signer certificate, or null if it could not be located.

Declaration
public X509CertificateInfo? SignerCertificate { get; }
Property Value
Type Description
X509CertificateInfo
View Source

SignerSubject

Gets the RFC 4514 string of the signer subject, or null if no certificate.

Declaration
public string? SignerSubject { get; }
Property Value
Type Description
string
View Source

SigningTime

Gets the signing time from the signed attributes, or null if absent.

Declaration
public DateTimeOffset? SigningTime { get; }
Property Value
Type Description
DateTimeOffset?
View Source

Status

Gets the verification status.

Declaration
public SMimeSignatureStatus Status { get; }
Property Value
Type Description
SMimeSignatureStatus
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX