Aracılığıyla paylaş


X509AuthorityKeyIdentifierExtension.CreateFromCertificate Yöntem

Tanım

Sağlanan sertifikadaki değerleri temel alan bir X509AuthorityKeyIdentifierExtension oluşturur.

public:
 static System::Security::Cryptography::X509Certificates::X509AuthorityKeyIdentifierExtension ^ CreateFromCertificate(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, bool includeKeyIdentifier, bool includeIssuerAndSerial);
public static System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension CreateFromCertificate (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, bool includeKeyIdentifier, bool includeIssuerAndSerial);
static member CreateFromCertificate : System.Security.Cryptography.X509Certificates.X509Certificate2 * bool * bool -> System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension
Public Shared Function CreateFromCertificate (certificate As X509Certificate2, includeKeyIdentifier As Boolean, includeIssuerAndSerial As Boolean) As X509AuthorityKeyIdentifierExtension

Parametreler

certificate
X509Certificate2

Bu uzantıyı imzalayacak Sertifika Yetkilisi (CA) sertifikası.

includeKeyIdentifier
Boolean

true sertifikadan Konu Anahtarı Tanımlayıcısı değerini bu uzantıya anahtar tanımlayıcı değeri olarak eklemek için; aksi takdirde , false.

includeIssuerAndSerial
Boolean

true sertifikayı verenin adını ve seri numarasını bu uzantıya eklemek için; aksi takdirde , false.

Döndürülenler

Yapılandırılan uzantı.

Özel durumlar

certificate, null değeridir.

includeKeyIdentifier , trueancak certificate Konu Anahtarı Tanımlayıcı uzantısı içermez.

Şunlara uygulanır