X509AuthorityKeyIdentifierExtension.CreateFromIssuerNameAndSerialNumber Metoda

Definicja

Przeciążenia

CreateFromIssuerNameAndSerialNumber(X500DistinguishedName, Byte[])

Tworzy element X509AuthorityKeyIdentifierExtension określający podaną nazwę wystawcy i numer seryjny.

CreateFromIssuerNameAndSerialNumber(X500DistinguishedName, ReadOnlySpan<Byte>)

Tworzy element X509AuthorityKeyIdentifierExtension określający podaną nazwę wystawcy i numer seryjny.

CreateFromIssuerNameAndSerialNumber(X500DistinguishedName, Byte[])

Źródło:
X509AuthorityKeyIdentifierExtension.cs
Źródło:
X509AuthorityKeyIdentifierExtension.cs
Źródło:
X509AuthorityKeyIdentifierExtension.cs

Tworzy element X509AuthorityKeyIdentifierExtension określający podaną nazwę wystawcy i numer seryjny.

C#
public static System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension CreateFromIssuerNameAndSerialNumber(System.Security.Cryptography.X509Certificates.X500DistinguishedName issuerName, byte[] serialNumber);

Parametry

issuerName
X500DistinguishedName

Wartość nazwy wystawcy z certyfikatu urzędu certyfikacji, który podpisze to rozszerzenie.

serialNumber
Byte[]

Wartość numeru seryjnego z certyfikatu urzędu certyfikacji, który podpisze to rozszerzenie.

Zwraca

Skonfigurowane rozszerzenie.

Wyjątki

issuerName lub serialNumber ma wartość null.

serialNumber jest nieprawidłowy, ponieważ wiodące 9 bitów są albo wszystkie zero, albo wszystkie.

Dotyczy

.NET 10 i inne wersje
Produkt Wersje
.NET 7, 8, 9, 10

CreateFromIssuerNameAndSerialNumber(X500DistinguishedName, ReadOnlySpan<Byte>)

Źródło:
X509AuthorityKeyIdentifierExtension.cs
Źródło:
X509AuthorityKeyIdentifierExtension.cs
Źródło:
X509AuthorityKeyIdentifierExtension.cs

Tworzy element X509AuthorityKeyIdentifierExtension określający podaną nazwę wystawcy i numer seryjny.

C#
public static System.Security.Cryptography.X509Certificates.X509AuthorityKeyIdentifierExtension CreateFromIssuerNameAndSerialNumber(System.Security.Cryptography.X509Certificates.X500DistinguishedName issuerName, ReadOnlySpan<byte> serialNumber);

Parametry

issuerName
X500DistinguishedName

Wartość nazwy wystawcy z certyfikatu urzędu certyfikacji, który podpisze to rozszerzenie.

serialNumber
ReadOnlySpan<Byte>

Wartość numeru seryjnego z certyfikatu urzędu certyfikacji, który podpisze to rozszerzenie.

Zwraca

Skonfigurowane rozszerzenie.

Wyjątki

issuerName to null.

serialNumber jest nieprawidłowy, ponieważ wiodące 9 bitów są albo wszystkie zero, albo wszystkie.

Dotyczy

.NET 10 i inne wersje
Produkt Wersje
.NET 7, 8, 9, 10