Table of Contents

Class X509Name

Namespace
Org.BouncyCastle.Asn1.X509
Assembly
BouncyCastle.Cryptography.dll
public class X509Name : Asn1Encodable, IAsn1Convertible
Inheritance
X509Name
Implements
Inherited Members

Constructors

X509Name()

protected X509Name()

X509Name(Asn1Sequence)

protected X509Name(Asn1Sequence seq)

Parameters

seq Asn1Sequence

X509Name(bool, IDictionary<string, DerObjectIdentifier>, string)

public X509Name(bool reverse, IDictionary<string, DerObjectIdentifier> lookup, string dirName)

Parameters

reverse bool
lookup IDictionary<string, DerObjectIdentifier>
dirName string

X509Name(bool, IDictionary<string, DerObjectIdentifier>, string, X509NameEntryConverter)

public X509Name(bool reverse, IDictionary<string, DerObjectIdentifier> lookup, string dirName, X509NameEntryConverter converter)

Parameters

reverse bool
lookup IDictionary<string, DerObjectIdentifier>
dirName string
converter X509NameEntryConverter

X509Name(bool, string)

public X509Name(bool reverse, string dirName)

Parameters

reverse bool
dirName string

X509Name(bool, string, X509NameEntryConverter)

public X509Name(bool reverse, string dirName, X509NameEntryConverter converter)

Parameters

reverse bool
dirName string
converter X509NameEntryConverter

X509Name(IList<DerObjectIdentifier>, IDictionary<DerObjectIdentifier, string>)

public X509Name(IList<DerObjectIdentifier> ordering, IDictionary<DerObjectIdentifier, string> attributes)

Parameters

ordering IList<DerObjectIdentifier>
attributes IDictionary<DerObjectIdentifier, string>

X509Name(IList<DerObjectIdentifier>, IDictionary<DerObjectIdentifier, string>, X509NameEntryConverter)

public X509Name(IList<DerObjectIdentifier> ordering, IDictionary<DerObjectIdentifier, string> attributes, X509NameEntryConverter converter)

Parameters

ordering IList<DerObjectIdentifier>
attributes IDictionary<DerObjectIdentifier, string>
converter X509NameEntryConverter

X509Name(IList<DerObjectIdentifier>, IList<string>)

public X509Name(IList<DerObjectIdentifier> oids, IList<string> values)

Parameters

oids IList<DerObjectIdentifier>
values IList<string>

X509Name(IList<DerObjectIdentifier>, IList<string>, X509NameEntryConverter)

public X509Name(IList<DerObjectIdentifier> oids, IList<string> values, X509NameEntryConverter converter)

Parameters

oids IList<DerObjectIdentifier>
values IList<string>
converter X509NameEntryConverter

X509Name(string)

public X509Name(string dirName)

Parameters

dirName string

X509Name(string, X509NameEntryConverter)

public X509Name(string dirName, X509NameEntryConverter converter)

Parameters

dirName string
converter X509NameEntryConverter

Fields

BusinessCategory

public static readonly DerObjectIdentifier BusinessCategory

Field Value

DerObjectIdentifier

C

public static readonly DerObjectIdentifier C

Field Value

DerObjectIdentifier

CN

public static readonly DerObjectIdentifier CN

Field Value

DerObjectIdentifier

CountryOfCitizenship

public static readonly DerObjectIdentifier CountryOfCitizenship

Field Value

DerObjectIdentifier

CountryOfResidence

public static readonly DerObjectIdentifier CountryOfResidence

Field Value

DerObjectIdentifier

DC

public static readonly DerObjectIdentifier DC

Field Value

DerObjectIdentifier

DateOfBirth

public static readonly DerObjectIdentifier DateOfBirth

Field Value

DerObjectIdentifier

DefaultLookup

public static readonly IDictionary<string, DerObjectIdentifier> DefaultLookup

Field Value

IDictionary<string, DerObjectIdentifier>

DefaultSymbols

public static readonly IDictionary<DerObjectIdentifier, string> DefaultSymbols

Field Value

IDictionary<DerObjectIdentifier, string>

Description

public static readonly DerObjectIdentifier Description

Field Value

DerObjectIdentifier

DmdName

public static readonly DerObjectIdentifier DmdName

Field Value

DerObjectIdentifier

DnQualifier

public static readonly DerObjectIdentifier DnQualifier

Field Value

DerObjectIdentifier

E

public static readonly DerObjectIdentifier E

Field Value

DerObjectIdentifier

EmailAddress

public static readonly DerObjectIdentifier EmailAddress

Field Value

DerObjectIdentifier

Gender

public static readonly DerObjectIdentifier Gender

Field Value

DerObjectIdentifier

Generation

public static readonly DerObjectIdentifier Generation

Field Value

DerObjectIdentifier

GivenName

public static readonly DerObjectIdentifier GivenName

Field Value

DerObjectIdentifier

Initials

public static readonly DerObjectIdentifier Initials

Field Value

DerObjectIdentifier

JurisdictionC

public static readonly DerObjectIdentifier JurisdictionC

Field Value

DerObjectIdentifier

JurisdictionL

public static readonly DerObjectIdentifier JurisdictionL

Field Value

DerObjectIdentifier

JurisdictionST

public static readonly DerObjectIdentifier JurisdictionST

Field Value

DerObjectIdentifier

L

public static readonly DerObjectIdentifier L

Field Value

DerObjectIdentifier

Name

public static readonly DerObjectIdentifier Name

Field Value

DerObjectIdentifier

NameAtBirth

public static readonly DerObjectIdentifier NameAtBirth

Field Value

DerObjectIdentifier

O

public static readonly DerObjectIdentifier O

Field Value

DerObjectIdentifier

OU

public static readonly DerObjectIdentifier OU

Field Value

DerObjectIdentifier

OrganizationIdentifier

public static readonly DerObjectIdentifier OrganizationIdentifier

Field Value

DerObjectIdentifier

PlaceOfBirth

public static readonly DerObjectIdentifier PlaceOfBirth

Field Value

DerObjectIdentifier

PostalAddress

public static readonly DerObjectIdentifier PostalAddress

Field Value

DerObjectIdentifier

PostalCode

public static readonly DerObjectIdentifier PostalCode

Field Value

DerObjectIdentifier

Pseudonym

public static readonly DerObjectIdentifier Pseudonym

Field Value

DerObjectIdentifier

RFC1779Symbols

public static readonly IDictionary<DerObjectIdentifier, string> RFC1779Symbols

Field Value

IDictionary<DerObjectIdentifier, string>

RFC2253Symbols

public static readonly IDictionary<DerObjectIdentifier, string> RFC2253Symbols

Field Value

IDictionary<DerObjectIdentifier, string>

Role

public static readonly DerObjectIdentifier Role

Field Value

DerObjectIdentifier

ST

public static readonly DerObjectIdentifier ST

Field Value

DerObjectIdentifier

SerialNumber

public static readonly DerObjectIdentifier SerialNumber

Field Value

DerObjectIdentifier

Street

public static readonly DerObjectIdentifier Street

Field Value

DerObjectIdentifier

Surname

public static readonly DerObjectIdentifier Surname

Field Value

DerObjectIdentifier

T

public static readonly DerObjectIdentifier T

Field Value

DerObjectIdentifier

TelephoneNumber

public static readonly DerObjectIdentifier TelephoneNumber

Field Value

DerObjectIdentifier

UID

public static readonly DerObjectIdentifier UID

Field Value

DerObjectIdentifier

UniqueIdentifier

public static readonly DerObjectIdentifier UniqueIdentifier

Field Value

DerObjectIdentifier

UnstructuredAddress

public static readonly DerObjectIdentifier UnstructuredAddress

Field Value

DerObjectIdentifier

UnstructuredName

public static readonly DerObjectIdentifier UnstructuredName

Field Value

DerObjectIdentifier

Properties

DefaultReverse

public static bool DefaultReverse { get; set; }

Property Value

bool

Methods

Equivalent(X509Name)

public bool Equivalent(X509Name other)

Parameters

other X509Name

Returns

bool

Equivalent(X509Name, bool)

public bool Equivalent(X509Name other, bool inOrder)

Parameters

other X509Name

The X509Name object to test equivalency against.

inOrder bool

If true, the order of elements must be the same, as well as the values associated with each element.

Returns

bool

GetInstance(Asn1TaggedObject, bool)

public static X509Name GetInstance(Asn1TaggedObject obj, bool explicitly)

Parameters

obj Asn1TaggedObject
explicitly bool

Returns

X509Name

GetInstance(object)

public static X509Name GetInstance(object obj)

Parameters

obj object

Returns

X509Name

GetOidList()

public IList<DerObjectIdentifier> GetOidList()

Returns

IList<DerObjectIdentifier>

GetOptional(Asn1Encodable)

public static X509Name GetOptional(Asn1Encodable element)

Parameters

element Asn1Encodable

Returns

X509Name

GetTagged(Asn1TaggedObject, bool)

public static X509Name GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit)

Parameters

taggedObject Asn1TaggedObject
declaredExplicit bool

Returns

X509Name

GetValueList()

public IList<string> GetValueList()

Returns

IList<string>

GetValueList(DerObjectIdentifier)

public IList<string> GetValueList(DerObjectIdentifier oid)

Parameters

oid DerObjectIdentifier

Returns

IList<string>

ToAsn1Object()

public override Asn1Object ToAsn1Object()

Returns

Asn1Object

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

ToString(bool, IDictionary<DerObjectIdentifier, string>)

public string ToString(bool reverse, IDictionary<DerObjectIdentifier, string> oidSymbols)

Parameters

reverse bool
oidSymbols IDictionary<DerObjectIdentifier, string>

Returns

string