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.​SubjectAlternativeNameBuilder

Assembly: System.Security.Cryptography

Inheritance: object → SubjectAlternativeNameBuilder

This class facilitates building a subject alternative name extension for an X.509 certificate.

Methods

public void
AddDnsName​(string dnsName)
dnsName The DNS name to be added.
Adds a DNS Name to the subject alternative name extension.
public void
AddEmailAddress​(string emailAddress)
emailAddress The email address to be added.
Adds an email address to the subject alternative name extension.
public void
AddIpAddress​(Net.IPAddress ipAddress)
ipAddress The IP address to be added.
Adds an IP address to the subject alternative name extension.
public void
AddUri​(Uri uri)
uri The URI to be added.
Adds a Uniform Resource Identifier (URI) to the subject alternative name extension.
public void
AddUserPrincipalName​(string upn)
upn The UPN to be added.
Adds a User Principal Name (UPN) to the subject alternative name extension.
public X509Extension
Build​(bool critical = False)
critical <see langword="true" /> to mark the extension as <see cref="P:System.Security.Cryptography.X509Certificates.X509Extension.Critical" /> ; otherwise, <see langword="false" /> . The default value is <see langword="false" /> .
Returns An <see cref="T:System.Security.Cryptography.X509Certificates.X509Extension" /> object that represents the encoded subject alternative name extension.
Returns an <see cref="T:System.Security.Cryptography.X509Certificates.X509Extension" /> object that represents the encoded subject alternative name extension.
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