Class X509Name
An X.500 Distinguished Name (RFC 5280 §4.1.2.4). Read-only. The
Rfc4514String property formats the name per RFC 4514 (most-significant RDN first, known OIDs as keywords).
Inherited Members
Namespace: DRIT.Mail.Rfc.Crypto.X509
Assembly: DRIT.Mail.dll
Syntax
public sealed class X509Name
Constructors
View SourceX509Name(byte[], IReadOnlyList<X509Rdn>, string)
Initializes a new instance of the X509Name class.
Declaration
public X509Name(byte[] rawData, IReadOnlyList<X509Rdn> rdns, string rfc4514String)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | rawData | The raw data used by the operation. |
| IReadOnlyList<X509Rdn> | rdns | Specifies the rdns value. |
| string | rfc4514String | The rfc4514 string used by the operation. |
Properties
View SourceRawData
Gets the DER-encoded Name bytes.
Declaration
public byte[] RawData { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Rdns
Gets the relative distinguished names in encoding order (least-significant first, as stored in the DER).
Declaration
public IReadOnlyList<X509Rdn> Rdns { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<X509Rdn> |
Rfc4514String
Gets the RFC 4514 string representation (most-significant RDN first).
Declaration
public string Rfc4514String { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceToString()
Returns the RFC 4514 string representation.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |