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
seqAsn1Sequence
X509Name(bool, IDictionary<string, DerObjectIdentifier>, string)
public X509Name(bool reverse, IDictionary<string, DerObjectIdentifier> lookup, string dirName)
Parameters
reverseboollookupIDictionary<string, DerObjectIdentifier>dirNamestring
X509Name(bool, IDictionary<string, DerObjectIdentifier>, string, X509NameEntryConverter)
public X509Name(bool reverse, IDictionary<string, DerObjectIdentifier> lookup, string dirName, X509NameEntryConverter converter)
Parameters
reverseboollookupIDictionary<string, DerObjectIdentifier>dirNamestringconverterX509NameEntryConverter
X509Name(bool, string)
public X509Name(bool reverse, string dirName)
Parameters
X509Name(bool, string, X509NameEntryConverter)
public X509Name(bool reverse, string dirName, X509NameEntryConverter converter)
Parameters
reversebooldirNamestringconverterX509NameEntryConverter
X509Name(IList<DerObjectIdentifier>, IDictionary<DerObjectIdentifier, string>)
public X509Name(IList<DerObjectIdentifier> ordering, IDictionary<DerObjectIdentifier, string> attributes)
Parameters
orderingIList<DerObjectIdentifier>attributesIDictionary<DerObjectIdentifier, string>
X509Name(IList<DerObjectIdentifier>, IDictionary<DerObjectIdentifier, string>, X509NameEntryConverter)
public X509Name(IList<DerObjectIdentifier> ordering, IDictionary<DerObjectIdentifier, string> attributes, X509NameEntryConverter converter)
Parameters
orderingIList<DerObjectIdentifier>attributesIDictionary<DerObjectIdentifier, string>converterX509NameEntryConverter
X509Name(IList<DerObjectIdentifier>, IList<string>)
public X509Name(IList<DerObjectIdentifier> oids, IList<string> values)
Parameters
oidsIList<DerObjectIdentifier>valuesIList<string>
X509Name(IList<DerObjectIdentifier>, IList<string>, X509NameEntryConverter)
public X509Name(IList<DerObjectIdentifier> oids, IList<string> values, X509NameEntryConverter converter)
Parameters
oidsIList<DerObjectIdentifier>valuesIList<string>converterX509NameEntryConverter
X509Name(string)
public X509Name(string dirName)
Parameters
dirNamestring
X509Name(string, X509NameEntryConverter)
public X509Name(string dirName, X509NameEntryConverter converter)
Parameters
dirNamestringconverterX509NameEntryConverter
Fields
BusinessCategory
public static readonly DerObjectIdentifier BusinessCategory
Field Value
C
public static readonly DerObjectIdentifier C
Field Value
CN
public static readonly DerObjectIdentifier CN
Field Value
CountryOfCitizenship
public static readonly DerObjectIdentifier CountryOfCitizenship
Field Value
CountryOfResidence
public static readonly DerObjectIdentifier CountryOfResidence
Field Value
DC
public static readonly DerObjectIdentifier DC
Field Value
DateOfBirth
public static readonly DerObjectIdentifier DateOfBirth
Field Value
DefaultLookup
public static readonly IDictionary<string, DerObjectIdentifier> DefaultLookup
Field Value
DefaultSymbols
public static readonly IDictionary<DerObjectIdentifier, string> DefaultSymbols
Field Value
Description
public static readonly DerObjectIdentifier Description
Field Value
DmdName
public static readonly DerObjectIdentifier DmdName
Field Value
DnQualifier
public static readonly DerObjectIdentifier DnQualifier
Field Value
E
public static readonly DerObjectIdentifier E
Field Value
EmailAddress
public static readonly DerObjectIdentifier EmailAddress
Field Value
Gender
public static readonly DerObjectIdentifier Gender
Field Value
Generation
public static readonly DerObjectIdentifier Generation
Field Value
GivenName
public static readonly DerObjectIdentifier GivenName
Field Value
Initials
public static readonly DerObjectIdentifier Initials
Field Value
JurisdictionC
public static readonly DerObjectIdentifier JurisdictionC
Field Value
JurisdictionL
public static readonly DerObjectIdentifier JurisdictionL
Field Value
JurisdictionST
public static readonly DerObjectIdentifier JurisdictionST
Field Value
L
public static readonly DerObjectIdentifier L
Field Value
Name
public static readonly DerObjectIdentifier Name
Field Value
NameAtBirth
public static readonly DerObjectIdentifier NameAtBirth
Field Value
O
public static readonly DerObjectIdentifier O
Field Value
OU
public static readonly DerObjectIdentifier OU
Field Value
OrganizationIdentifier
public static readonly DerObjectIdentifier OrganizationIdentifier
Field Value
PlaceOfBirth
public static readonly DerObjectIdentifier PlaceOfBirth
Field Value
PostalAddress
public static readonly DerObjectIdentifier PostalAddress
Field Value
PostalCode
public static readonly DerObjectIdentifier PostalCode
Field Value
Pseudonym
public static readonly DerObjectIdentifier Pseudonym
Field Value
RFC1779Symbols
public static readonly IDictionary<DerObjectIdentifier, string> RFC1779Symbols
Field Value
RFC2253Symbols
public static readonly IDictionary<DerObjectIdentifier, string> RFC2253Symbols
Field Value
Role
public static readonly DerObjectIdentifier Role
Field Value
ST
public static readonly DerObjectIdentifier ST
Field Value
SerialNumber
public static readonly DerObjectIdentifier SerialNumber
Field Value
Street
public static readonly DerObjectIdentifier Street
Field Value
Surname
public static readonly DerObjectIdentifier Surname
Field Value
T
public static readonly DerObjectIdentifier T
Field Value
TelephoneNumber
public static readonly DerObjectIdentifier TelephoneNumber
Field Value
UID
public static readonly DerObjectIdentifier UID
Field Value
UniqueIdentifier
public static readonly DerObjectIdentifier UniqueIdentifier
Field Value
UnstructuredAddress
public static readonly DerObjectIdentifier UnstructuredAddress
Field Value
UnstructuredName
public static readonly DerObjectIdentifier UnstructuredName
Field Value
Properties
DefaultReverse
public static bool DefaultReverse { get; set; }
Property Value
Methods
Equivalent(X509Name)
public bool Equivalent(X509Name other)
Parameters
otherX509Name
Returns
Equivalent(X509Name, bool)
public bool Equivalent(X509Name other, bool inOrder)
Parameters
otherX509NameThe X509Name object to test equivalency against.
inOrderboolIf true, the order of elements must be the same, as well as the values associated with each element.
Returns
GetInstance(Asn1TaggedObject, bool)
public static X509Name GetInstance(Asn1TaggedObject obj, bool explicitly)
Parameters
objAsn1TaggedObjectexplicitlybool
Returns
GetInstance(object)
public static X509Name GetInstance(object obj)
Parameters
objobject
Returns
GetOidList()
public IList<DerObjectIdentifier> GetOidList()
Returns
GetOptional(Asn1Encodable)
public static X509Name GetOptional(Asn1Encodable element)
Parameters
elementAsn1Encodable
Returns
GetTagged(Asn1TaggedObject, bool)
public static X509Name GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit)
Parameters
taggedObjectAsn1TaggedObjectdeclaredExplicitbool
Returns
GetValueList()
public IList<string> GetValueList()
Returns
GetValueList(DerObjectIdentifier)
public IList<string> GetValueList(DerObjectIdentifier oid)
Parameters
Returns
ToAsn1Object()
public override Asn1Object ToAsn1Object()
Returns
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
reversebooloidSymbolsIDictionary<DerObjectIdentifier, string>