X509AuthorityKeyIdentifierExtension.Create 方法

定义

重载

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

创建一个 X509AuthorityKeyIdentifierExtension ,指定提供的密钥标识符、颁发者名称和序列号。

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

创建一个 X509AuthorityKeyIdentifierExtension ,指定提供的密钥标识符、颁发者名称和序列号。

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

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

创建一个 X509AuthorityKeyIdentifierExtension ,指定提供的密钥标识符、颁发者名称和序列号。

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

参数

keyIdentifier
Byte[]

证书颁发机构 (CA) 将对此扩展进行签名的证书的使用者密钥标识符值。

issuerName
X500DistinguishedName

证书颁发机构 (CA) 将对此扩展进行签名的证书的颁发者名称值。

serialNumber
Byte[]

证书颁发机构 (CA) 将对此扩展进行签名的证书的序列号值。

返回

配置的扩展。

例外

keyIdentifierissuerNameserialNumbernull

serialNumber 无效,因为前导 9 位要么全部为零位,要么全部为 1 位。

适用于

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

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

创建一个 X509AuthorityKeyIdentifierExtension ,指定提供的密钥标识符、颁发者名称和序列号。

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

参数

keyIdentifier
ReadOnlySpan<Byte>

证书颁发机构 (CA) 将对此扩展进行签名的证书的使用者密钥标识符值。

issuerName
X500DistinguishedName

证书颁发机构 (CA) 将对此扩展进行签名的证书的颁发者名称值。

serialNumber
ReadOnlySpan<Byte>

证书颁发机构 (CA) 将对此扩展进行签名的证书的序列号值。

返回

配置的扩展。

例外

issuerNamenull

serialNumber 无效,因为前导 9 位要么全部为零位,要么全部为 1 位。

适用于