Persisted​Key​Provider Persisted​Key​Provider Persisted​Key​Provider Class

Definition

Retrieves a persisted key from a Certificate object.

public : static class PersistedKeyProviderpublic static class PersistedKeyProviderPublic Static Class PersistedKeyProvider
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

OpenKeyPairFromCertificateAsync(Certificate, String, CryptographicPadding) OpenKeyPairFromCertificateAsync(Certificate, String, CryptographicPadding) OpenKeyPairFromCertificateAsync(Certificate, String, CryptographicPadding)

Opens the persisted private key from the specified Certificate object.

public : static IAsyncOperation<CryptographicKey> OpenKeyPairFromCertificateAsync(Certificate certificate, PlatForm::String hashAlgorithmName, CryptographicPadding padding)public static IAsyncOperation<CryptographicKey> OpenKeyPairFromCertificateAsync(Certificate certificate, String hashAlgorithmName, CryptographicPadding padding)Public Static Function OpenKeyPairFromCertificateAsync(certificate As Certificate, hashAlgorithmName As String, padding As CryptographicPadding) As IAsyncOperation( Of CryptographicKey )
Parameters
certificate
Certificate Certificate Certificate

The certificate that is associated with the private key.

hashAlgorithmName
PlatForm::String String String

The hash algorithm for signature operations. For encryption, the hash algorithm is ignored.

padding
CryptographicPadding CryptographicPadding CryptographicPadding

The padding mode for asymmetric algorithm signature or encryption operations.

Returns

An asynchronous operation for retrieving a private key from the supplied Certificate object.

Attributes
See Also

OpenPublicKeyFromCertificate(Certificate, String, CryptographicPadding) OpenPublicKeyFromCertificate(Certificate, String, CryptographicPadding) OpenPublicKeyFromCertificate(Certificate, String, CryptographicPadding)

Opens the persisted public key from the specified Certificate object.

public : static CryptographicKey OpenPublicKeyFromCertificate(Certificate certificate, PlatForm::String hashAlgorithmName, CryptographicPadding padding)public static CryptographicKey OpenPublicKeyFromCertificate(Certificate certificate, String hashAlgorithmName, CryptographicPadding padding)Public Static Function OpenPublicKeyFromCertificate(certificate As Certificate, hashAlgorithmName As String, padding As CryptographicPadding) As CryptographicKey
Parameters
certificate
Certificate Certificate Certificate

The certificate that contains the public key.

hashAlgorithmName
PlatForm::String String String

The has algorithm for signature operations.

padding
CryptographicPadding CryptographicPadding CryptographicPadding

The padding mode for asymmetric algorithm signature or encryption operations.

Returns

The public key retrieved from the supplied Certificate object.

Attributes
See Also