X509AlternativeName(X509AlternativeNamesEnum, Object, Oid) Constructor

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.

Definition

Namespace: SysadminsLV.PKI.Cryptography.X509Certificates
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public X509AlternativeName(
	X509AlternativeNamesEnum type,
	Object value,
	Oid oid
)

Parameters

type  X509AlternativeNamesEnum
Specifies the type of the alternative name contained in the value parameter. Type can be either: OtherName, Guid or UserPrincipalName.
value  Object
Specifies the alternative name value. This parameter accepts either, string or byte array that represents other name value.
oid  Oid
Specifies the object identifier of the other name.

Remarks

For compatibility with Name Constraints extension, null value can be passed for any name type supported by this constructor.

Exceptions

ArgumentNullExceptionrawData value is null reference.
InvalidOperationException The constructor cannot be used for OtherName type.
ArgumentException The value does not fall within the expected type.

See Also