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.
Inherited Members
Namespace: DRIT.Mail.Rfc.Crypto.Cms
Assembly: DRIT.Mail.dll
Syntax
public sealed class SignerInfo
Constructors
View SourceSignerInfo(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 SourceDigestAlgorithm
Gets the digest algorithm.
Declaration
public AlgorithmIdentifier DigestAlgorithm { get; }
Property Value
| Type | Description |
|---|---|
| AlgorithmIdentifier |
Sid
Gets the signer identifier.
Declaration
public SignerIdentifier Sid { get; }
Property Value
| Type | Description |
|---|---|
| SignerIdentifier |
Signature
Gets the signature value.
Declaration
public byte[] Signature { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |
SignatureAlgorithm
Gets the signature algorithm.
Declaration
public AlgorithmIdentifier SignatureAlgorithm { get; }
Property Value
| Type | Description |
|---|---|
| AlgorithmIdentifier |
SignedAttributes
Gets the signed attributes, or null if absent.
Declaration
public IReadOnlyList<CmsAttribute>? SignedAttributes { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<CmsAttribute> |
UnsignedAttributes
Gets the unsigned attributes, or null if absent.
Declaration
public IReadOnlyList<CmsAttribute>? UnsignedAttributes { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<CmsAttribute> |
Version
Gets the CMS version.
Declaration
public int Version { get; }
Property Value
| Type | Description |
|---|---|
| int |