信息
您所需的主题如下所示。但此主题未包含在此库中。

Certificate Class

表示加密证书。

语法


var certificate = new Windows.Security.Cryptography.Certificates.Certificate();

特性

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06030000)]

成员

Certificate类 具有这些类型的成员:

构造函数

Certificate类 具有这些构造函数。

构造函数说明
Certificate Create a new instance of the Certificate class using the specified certificate data.

 

方法

The Certificate 类 具有这些方法。 对于 C#、Visual Basic 和 C++,它还继承方法于Object 类.

方法说明
BuildChainAsync(IIterable(Certificate)) Build a certificate chain for the specified certificates starting from the end entity certificate to the root .
BuildChainAsync(IIterable(Certificate), ChainBuildingParameters) Build a certificate chain for the specified certificates starting from the end entity certificate to the root using the specified chain building parameters.
GetCertificateBlob Gets the ASN.1 DER encoded certificate blob.
GetHashValue() Gets the SHA1 hash value for the certificate.
GetHashValue(String) Gets the hash value for the certificate for a specified algorithm.

 

属性

Certificate类 具有这些属性。

属性访问类型说明

EnhancedKeyUsages

只读Gets a collection of object identifiers (OIDs) for the enhanced key usage extension.

FriendlyName

读/写Gets or sets the friendly name for the certificate.

HasPrivateKey

只读Gets a value indicating whether the certificate has a private key.

IsStronglyProtected

只读Gets a value that indicates whether the private key associated with the certificate is strongly protected.

Issuer

只读Gets the name of the certificate issuer.

SerialNumber

只读Gets the serial number of the certificate.

Subject

只读Gets the subject name of the certificate.

ValidFrom

只读Gets the date and time after which the certificate is valid.

ValidTo

只读Gets the date and time after which the certificate is no longer valid.

 

要求

最低支持客户端

Windows 8.1 [Windows 应用商店应用程序, 桌面应用程序]

最低支持服务器

Windows Server 2012 R2 [Windows 应用商店应用程序, 桌面应用程序]

命名空间

Windows.Security.Cryptography.Certificates
Windows::Security::Cryptography::Certificates [C++]

元数据

Windows.winmd

另请参见

Object

 

 

显示:
© 2015 Microsoft