X509AlternativeName Constructor (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.
Namespace:
System.Security.Cryptography.X509Certificates
Assembly:
SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax public X509AlternativeName(
X509AlternativeNamesEnum type,
Object value,
Oid oid
)
Public Sub New (
type As X509AlternativeNamesEnum,
value As Object,
oid As Oid
)
public:
X509AlternativeName(
X509AlternativeNamesEnum type,
Object^ value,
Oid^ oid
)
new :
type : X509AlternativeNamesEnum *
value : Object *
oid : Oid -> X509AlternativeName
Parameters
- type
- Type: System.Security.Cryptography.X509CertificatesX509AlternativeNamesEnum
Specifies the type of the alternative name contained in the value parameter. Type can be either:
OtherName, Guid or UserPrincipalName.
- value
- Type: SystemObject
Specifies the alternative name value. This parameter accepts either, string or byte array that
represents other name value.
- oid
- Type: System.Security.CryptographyOid
Specifies the object identifier of the other name.
Exceptions Exception | Condition |
---|
ArgumentNullException | rawData value is null reference.
|
InvalidOperationException |
The constructor cannot be used for OtherName type.
|
ArgumentException |
The value does not fall within the expected type.
|
Remarks
For compatibility with Name Constraints extension, null value can be passed for any name type
supported by this constructor.
See Also