Share via


Pkcs12CertBag.GetCertificateType 方法

定义

获取标识已编码证书值的内容类型的对象标识符 (OID)。

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

返回

Oid

标识已编码证书值的内容类型的对象标识符 (OID)。

注解

IETF RFC 7292 为 CertBag 定义了两种内容类型:X.509 公钥证书 (1.2.840.113549.1.9.22.22 1) 和 SDSI 证书 (1.2.840.113549.1.9.22.2) ,并指示将来可以添加其他类型的证书。 此类型对 X.509 公钥证书具有特殊支持,这些证书在 .NET 中由 X509Certificate2 类通过 IsX509CertificateGetCertificate() 成员表示。 此类型对 SDSI 证书没有特殊支持,但需要 SDSI 证书 (或在 IETF RFC 7292) 之后定义的证书类型的调用方可以通过 属性直接 EncodedCertificate 处理值。

适用于

另请参阅