X509AlternativeName Class

Represents a single alternative name used in X509SubjectAlternativeNamesExtension and X509IssuerAlternativeNamesExtension classes. This class supports all alternative name types defined in RFC 5280 and supports two Microsoft proprietary alternative names: Guid and User Principal Name (UPN).

Definition

Namespace: SysadminsLV.PKI.Cryptography.X509Certificates
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public class X509AlternativeName
Inheritance
Object    X509AlternativeName

Constructors

X509AlternativeName(Byte) Initializes a new instance of the X509AlternativeName class by using a ASN.1-encoded byte array that represents a particular alternative name.
X509AlternativeName(X509AlternativeNamesEnum, Object) Initializes a new instance of the X509AlternativeName class by using alternative name type and alternative name value.
X509AlternativeName(X509AlternativeNamesEnum, Object, Oid) Initializes a new instance of the X509AlternativeName class by using alternative name type, alternative name value and alternative name object identifier. This constructor supports only OtherName type which can be either: OtherName, Guid or UserPrincipalName. Use additional constructor for the rest alternative name types.

Properties

OID Gets an object identifier of the other name. For common names, this property returns null.
RawData Gets ASN.1-encoded alternative name value in the byte array form.
Type Gets the type of alternative name contained in the Value property.
Value Gets textual representation of the alternative name.

Methods

Equals
(Inherited from Object)
Finalize
(Inherited from Object)
Format Returns a formatted version of the Abstract Syntax Notation One (ASN.1)-encoded alternative name as a string.
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString Displays an alternative name in text format.
(Overrides ObjectToString)

See Also