CertificateChain CertificateChain CertificateChain CertificateChain Class

Definition

Represents a certificate chain used for signature verification.

public : sealed class CertificateChain : ICertificateChain
public sealed class CertificateChain : ICertificateChain
Public NotInheritable Class CertificateChain Implements ICertificateChain
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

A certificate chain is a hierarchal collection of certificates that leads from the end user or computer back to a root of trust, typically the root certification authority (CA).

To obtain a CertificateChain object, call the Certificate.BuildChainAsync method.

Methods

GetCertificates(Boolean) GetCertificates(Boolean) GetCertificates(Boolean) GetCertificates(Boolean)

Gets the list of certificates from the certificate chain.

public : IVectorView<Certificate> GetCertificates(bool includeRoot)
public IReadOnlyList<Certificate> GetCertificates(Boolean includeRoot)
Public Function GetCertificates(includeRoot As Boolean) As IReadOnlyList<Certificate>( Of Certificate )
var iVectorView = certificateChain.getCertificates(includeRoot);
Parameters
includeRoot
bool Boolean Boolean Boolean

True to include the root certificate in the results; otherwise false.

Returns
IVectorView<Certificate> IReadOnlyList<Certificate> IReadOnlyList<Certificate> IReadOnlyList<Certificate>

The list of certificates from the certificate chain.

Validate() Validate() Validate() Validate()

Verifies whether or not the certificate chain is valid.

public : ChainValidationResult Validate()
public ChainValidationResult Validate()
Public Function Validate() As ChainValidationResult
var chainValidationResult = certificateChain.validate();
Returns

The result of the certificate chain verification operation.

See Also

Validate(ChainValidationParameters) Validate(ChainValidationParameters) Validate(ChainValidationParameters) Validate(ChainValidationParameters)

Verifies whether or not the certificate chain is valid using the specified validation parameters.

public : ChainValidationResult Validate(ChainValidationParameters parameter)
public ChainValidationResult Validate(ChainValidationParameters parameter)
Public Function Validate(parameter As ChainValidationParameters) As ChainValidationResult
var chainValidationResult = certificateChain.validate(parameter);
Parameters
parameter
ChainValidationParameters ChainValidationParameters ChainValidationParameters ChainValidationParameters

The validation parameters to use when verifying the certificate chain.

Returns

The result of the certificate chain verification operation.

See Also