X509AuthorityKeyIdentifierExtension.CreateFromIssuerNameAndSerialNumber 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CreateFromIssuerNameAndSerialNumber(X500DistinguishedName, Byte[])
建立 , X509AuthorityKeyIdentifierExtension 指定提供的簽發者名稱和序號。
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
參數
- issuerName
- X500DistinguishedName
證書頒發機構單位 (CA 的簽發者名稱值,) 將簽署此延伸模組的憑證。
- serialNumber
- Byte[]
證書頒發機構單位 (CA 的序號值,) 將簽署此延伸模組的憑證。
傳回
已設定的擴充功能。
例外狀況
issuerName
或 serialNumber
為 null
。
serialNumber
無效,因為前置 9 位全部都是零或全部一個。
適用於
CreateFromIssuerNameAndSerialNumber(X500DistinguishedName, ReadOnlySpan<Byte>)
建立 , X509AuthorityKeyIdentifierExtension 指定提供的簽發者名稱和序號。
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
參數
- issuerName
- X500DistinguishedName
證書頒發機構單位 (CA 的簽發者名稱值,) 將簽署此延伸模組的憑證。
- serialNumber
- ReadOnlySpan<Byte>
證書頒發機構單位 (CA 的序號值,) 將簽署此延伸模組的憑證。
傳回
已設定的擴充功能。
例外狀況
issuerName
為 null
。
serialNumber
無效,因為前置 9 位全部都是零或全部一個。