Pkcs12CertBag.GetCertificateType Method

Definition

Gets the Object Identifier (OID) which identifies the content type of the encoded certificte value.

public:
 System::Security::Cryptography::Oid ^ GetCertificateType();
public System.Security.Cryptography.Oid GetCertificateType ();
member this.GetCertificateType : unit -> System.Security.Cryptography.Oid
Public Function GetCertificateType () As Oid

Returns

Oid

The Object Identifier (OID) which identifies the content type of the encoded certificate value.

Remarks

IETF RFC 7292 defines two content types for a CertBag: X.509 Public Key Certificate (1.2.840.113549.1.9.22.1) and SDSI Certificate (1.2.840.113549.1.9.22.2), as well as indicating other types could be added in the future. This type has special support for X.509 Public Key Certificates, which are represented in .NET by the X509Certificate2 class, via the IsX509Certificate and GetCertificate() members. This type does not have special support for SDSI certificates, but callers expecting an SDSI certificate (or a certificate type defined after IETF RFC 7292) can process the value directly via the EncodedCertificate property.

Applies to

See also