Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Security.​Cryptography.​X509Certificates.​X500DistinguishedNameBuilder

Assembly: System.Security.Cryptography

Inheritance: object → X500DistinguishedNameBuilder

Facilitates building a distinguished name for an X.509 certificate.

Methods

public void
Add​(Oid oid, string value, Formats.​Asn1.​UniversalTagNumber? stringEncodingType = null)
Adds a <c>Relative Distinguished Name</c> attribute identified by an OID.
oid The OID of the attribute.
value The value of the attribute.
stringEncodingType The encoding type to use when encoding the <paramref name="value" /> in to the attribute.
public void
Add​(string oidValue, string value, Formats.​Asn1.​UniversalTagNumber? stringEncodingType = null)
Adds a <c>Relative Distinguished Name</c> attribute identified by an OID.
oidValue The OID of the attribute.
value The value of the attribute.
stringEncodingType The encoding type to use when encoding the <paramref name="value" /> in to the attribute.
public void
AddCommonName​(string commonName)
Adds a common name attribute.
commonName The common name to add.
public void
AddCountryOrRegion​(string twoLetterCode)
Adds a country or region attribute.
twoLetterCode The two letter code of the country or region.
public void
AddDomainComponent​(string domainComponent)
Adds a domain component attribute.
domainComponent The domain component to add.
public void
AddEmailAddress​(string emailAddress)
Adds an email address attribute.
emailAddress The email address to add.
public void
AddLocalityName​(string localityName)
Adds a locality name attribute.
localityName The locality name to add.
public void
AddOrganizationalUnitName​(string organizationalUnitName)
Adds an organizational unit name attribute.
organizationalUnitName The organizational unit name to add.
public void
AddOrganizationName​(string organizationName)
Adds an organization name attribute.
organizationName The organization name to add.
public void
AddStateOrProvinceName​(string stateOrProvinceName)
Adds a state or province name attribute.
stateOrProvinceName The state or province name to add.
Build​()
Builds an <see cref="T:System.Security.Cryptography.X509Certificates.X500DistinguishedName" /> that represents the encoded attributes.
Returns An <see cref="T:System.Security.Cryptography.X509Certificates.X500DistinguishedName" /> that represents the encoded attributes.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object