X509AuthorityKeyIdentifierExtension.CreateFromIssuerNameAndSerialNumber Method

Definition

Overloads

CreateFromIssuerNameAndSerialNumber(X500DistinguishedName, Byte[])

Creates an X509AuthorityKeyIdentifierExtension that specifies the provided issuer name and serial number.

CreateFromIssuerNameAndSerialNumber(X500DistinguishedName, ReadOnlySpan<Byte>)

Creates an X509AuthorityKeyIdentifierExtension that specifies the provided issuer name and serial number.

CreateFromIssuerNameAndSerialNumber(X500DistinguishedName, Byte[])

Source:
X509AuthorityKeyIdentifierExtension.cs
Source:
X509AuthorityKeyIdentifierExtension.cs
Source:
X509AuthorityKeyIdentifierExtension.cs

Creates an X509AuthorityKeyIdentifierExtension that specifies the provided issuer name and serial number.

public:
 static System::Security::Cryptography::X509Certificates::X509AuthorityKeyIdentifierExtension ^ CreateFromIssuerNameAndSerialNumber(System::Security::Cryptography::X509Certificates::X500DistinguishedName ^ issuerName, cli::array <System::Byte> ^ serialNumber);
public static System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension CreateFromIssuerNameAndSerialNumber (System.Security.Cryptography.X509Certificates.X500DistinguishedName issuerName, byte[] serialNumber);
static member CreateFromIssuerNameAndSerialNumber : System.Security.Cryptography.X509Certificates.X500DistinguishedName * byte[] -> System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension
Public Shared Function CreateFromIssuerNameAndSerialNumber (issuerName As X500DistinguishedName, serialNumber As Byte()) As X509AuthorityKeyIdentifierExtension

Parameters

issuerName
X500DistinguishedName

The issuer name value from the Certificate Authority (CA) certificate that will sign this extension.

serialNumber
Byte[]

The serial number value from the Certificate Authority (CA) certificate that will sign this extension.

Returns

The configured extension.

Exceptions

issuerName or serialNumber is null.

serialNumber is invalid because the leading 9 bits are either all zero or all one.

Applies to

CreateFromIssuerNameAndSerialNumber(X500DistinguishedName, ReadOnlySpan<Byte>)

Source:
X509AuthorityKeyIdentifierExtension.cs
Source:
X509AuthorityKeyIdentifierExtension.cs
Source:
X509AuthorityKeyIdentifierExtension.cs

Creates an X509AuthorityKeyIdentifierExtension that specifies the provided issuer name and serial number.

public:
 static System::Security::Cryptography::X509Certificates::X509AuthorityKeyIdentifierExtension ^ CreateFromIssuerNameAndSerialNumber(System::Security::Cryptography::X509Certificates::X500DistinguishedName ^ issuerName, ReadOnlySpan<System::Byte> serialNumber);
public static System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension CreateFromIssuerNameAndSerialNumber (System.Security.Cryptography.X509Certificates.X500DistinguishedName issuerName, ReadOnlySpan<byte> serialNumber);
static member CreateFromIssuerNameAndSerialNumber : System.Security.Cryptography.X509Certificates.X500DistinguishedName * ReadOnlySpan<byte> -> System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension
Public Shared Function CreateFromIssuerNameAndSerialNumber (issuerName As X500DistinguishedName, serialNumber As ReadOnlySpan(Of Byte)) As X509AuthorityKeyIdentifierExtension

Parameters

issuerName
X500DistinguishedName

The issuer name value from the Certificate Authority (CA) certificate that will sign this extension.

serialNumber
ReadOnlySpan<Byte>

The serial number value from the Certificate Authority (CA) certificate that will sign this extension.

Returns

The configured extension.

Exceptions

issuerName is null.

serialNumber is invalid because the leading 9 bits are either all zero or all one.

Applies to