Certificate Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a cryptography certificate.
public ref class Certificate sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Security.Cryptography.Certificates.ICertificateFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class Certificate final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Security.Cryptography.Certificates.ICertificateFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class Certificate final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Security.Cryptography.Certificates.ICertificateFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class Certificate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Security.Cryptography.Certificates.ICertificateFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class Certificate
function Certificate(certBlob)
Public NotInheritable Class Certificate
- Inheritance
- Attributes
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Windows version | SDK version | Value added |
---|---|---|
1607 | 14393 | IsPerUser |
1607 | 14393 | KeyStorageProviderName |
1607 | 14393 | StoreName |
Certificate(IBuffer) |
Create a new instance of the Certificate class using the specified certificate data. |
Enhanced |
Gets a collection of object identifiers (OIDs) for the enhanced key usage extension. |
Friendly |
Gets or sets the friendly name for the certificate. |
Has |
Gets a value indicating whether the certificate has a private key. |
Is |
Gets whether the certificate is per-user. |
Is |
Gets whether the security device is bound. |
Is |
Gets a value that indicates whether the private key associated with the certificate is strongly protected. |
Issuer |
Gets the Common Name (CN) of the certificate issuer. |
Key |
Gets the name of the cryptographic algorithm used to create the key. |
Key |
Gets the certificate's key storage provider name. |
Key |
Gets the key uses for the certificate. |
Serial |
Gets the serial number of the certificate. |
Signature |
Gets the signature algorithm name. |
Signature |
Gets the signature hash algorithm name. |
Store |
Gets the certificate's store name. |
Subject |
Gets the subject name of the certificate. |
Subject |
Gets info on the subject alternative name. |
Valid |
Gets the date and time after which the certificate is valid. |
Valid |
Gets the date and time after which the certificate is no longer valid. |
Build |
Build a certificate chain for the specified certificates starting from the end entity certificate to the root using the specified chain building parameters. |
Build |
Build a certificate chain for the specified certificates starting from the end entity certificate to the root. |
Get |
Gets the ASN.1 DER encoded certificate blob. |
Get |
Gets the SHA1 hash value for the certificate. |
Get |
Gets the hash value for the certificate for a specified algorithm. |
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |