Sdílet prostřednictvím


Pkcs12CertBag(Oid, ReadOnlyMemory<Byte>) Konstruktor

Definice

Inicializuje novou instanci Pkcs12CertBag třídy pomocí zadaného typu certifikátu a kódování.

public:
 Pkcs12CertBag(System::Security::Cryptography::Oid ^ certificateType, ReadOnlyMemory<System::Byte> encodedCertificate);
public Pkcs12CertBag (System.Security.Cryptography.Oid certificateType, ReadOnlyMemory<byte> encodedCertificate);
new System.Security.Cryptography.Pkcs.Pkcs12CertBag : System.Security.Cryptography.Oid * ReadOnlyMemory<byte> -> System.Security.Cryptography.Pkcs.Pkcs12CertBag
Public Sub New (certificateType As Oid, encodedCertificate As ReadOnlyMemory(Of Byte))

Parametry

certificateType
Oid

Identifikátor objektu (OID) pro typ certifikátu.

encodedCertificate
ReadOnlyMemory<Byte>

Hodnota zakódovaného certifikátu.

Výjimky

Parametr certificateType je null.

Parametr encodedCertificate nepředstavuje jednu hodnotu zakódovanou jako ASN.1 BER.

Poznámky

Neprovedou se žádné ověření, aby se zajistilo, že encodedCertificate je hodnota pro uvedenou certificateTypehodnotu správná.

Všimněte si, že u certifikátů veřejného klíče X.509 je správné kódování pro hodnotu CertBag zabalení certifikátu s kódováním DER do ŘETĚZCE OCTET.

Platí pro