X509AuthorityKeyIdentifierExtension.Create Method

Definition

Overloads

Create(Byte[], X500DistinguishedName, Byte[])

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

Create(ReadOnlySpan<Byte>, X500DistinguishedName, ReadOnlySpan<Byte>)

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

Create(Byte[], X500DistinguishedName, Byte[])

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

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

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

Parameters

keyIdentifier
Byte[]

The subject key identifier value from the Certificate Authority (CA) certificate that will sign this extension.

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

keyIdentifier, issuerName or serialNumber is null.

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

Applies to

Create(ReadOnlySpan<Byte>, X500DistinguishedName, ReadOnlySpan<Byte>)

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

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

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

Parameters

keyIdentifier
ReadOnlySpan<Byte>

The subject key identifier value from the Certificate Authority (CA) certificate that will sign this extension.

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