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

Class SignerInfo

A CMS SignerInfo (RFC 5652 §5.3). Contains the signer identifier, digest and signature algorithms, signed and unsigned attributes, and the signature value.

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

Constructors

View Source

SignerInfo(int, SignerIdentifier, AlgorithmIdentifier, IReadOnlyList<CmsAttribute>?, AlgorithmIdentifier, byte[], IReadOnlyList<CmsAttribute>?)

Initializes a new instance of the SignerInfo class.

Declaration
public SignerInfo(int version, SignerIdentifier sid, AlgorithmIdentifier digestAlgorithm, IReadOnlyList<CmsAttribute>? signedAttributes, AlgorithmIdentifier signatureAlgorithm, byte[] signature, IReadOnlyList<CmsAttribute>? unsignedAttributes)
Parameters
Type Name Description
int version
SignerIdentifier sid
AlgorithmIdentifier digestAlgorithm
IReadOnlyList<CmsAttribute> signedAttributes
AlgorithmIdentifier signatureAlgorithm
byte[] signature
IReadOnlyList<CmsAttribute> unsignedAttributes

Properties

View Source

DigestAlgorithm

Gets the digest algorithm.

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

Sid

Gets the signer identifier.

Declaration
public SignerIdentifier Sid { get; }
Property Value
Type Description
SignerIdentifier
View Source

Signature

Gets the signature value.

Declaration
public byte[] Signature { get; }
Property Value
Type Description
byte[]
View Source

SignatureAlgorithm

Gets the signature algorithm.

Declaration
public AlgorithmIdentifier SignatureAlgorithm { get; }
Property Value
Type Description
AlgorithmIdentifier
View Source

SignedAttributes

Gets the signed attributes, or null if absent.

Declaration
public IReadOnlyList<CmsAttribute>? SignedAttributes { get; }
Property Value
Type Description
IReadOnlyList<CmsAttribute>
View Source

UnsignedAttributes

Gets the unsigned attributes, or null if absent.

Declaration
public IReadOnlyList<CmsAttribute>? UnsignedAttributes { get; }
Property Value
Type Description
IReadOnlyList<CmsAttribute>
View Source

Version

Gets the CMS version.

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

DR-IT Software documentation

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

Generated by DocFX