Class SignerIdentifier
Identifies a signer or recipient in a CMS structure (RFC 5652 §5.2, §6.2). Either by IssuerAndSerialNumber or by SubjectKeyIdentifier.
Inherited Members
Namespace: DRIT.Mail.Rfc.Crypto.Cms
Assembly: DRIT.Mail.dll
Syntax
public sealed class SignerIdentifier
Constructors
View SourceSignerIdentifier(byte[])
Initializes a new instance of the SignerIdentifier class for a SubjectKeyIdentifier reference.
Declaration
public SignerIdentifier(byte[] subjectKeyIdentifier)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | subjectKeyIdentifier | The subject key identifier identifier. |
SignerIdentifier(byte[], byte[])
Initializes a new instance of the SignerIdentifier class for an IssuerAndSerialNumber reference.
Declaration
public SignerIdentifier(byte[] issuerName, byte[] serialNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | issuerName | A value indicating whether issuer name. |
| byte[] | serialNumber | The serial number used by the operation. |
Properties
View SourceIssuerName
Gets the DER-encoded issuer Name, or null if this is a SubjectKeyIdentifier.
Declaration
public byte[]? IssuerName { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |
SerialNumber
Gets the serial number (big-endian bytes), or null if this is a SubjectKeyIdentifier.
Declaration
public byte[]? SerialNumber { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |
SubjectKeyIdentifier
Gets the subject key identifier, or null if this is an IssuerAndSerialNumber.
Declaration
public byte[]? SubjectKeyIdentifier { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Type
Gets the identifier type.
Declaration
public SignerIdentifierType Type { get; }
Property Value
| Type | Description |
|---|---|
| SignerIdentifierType |