PersistedKeyProvider.OpenKeyPairFromCertificateAsync Method

Definition

Opens the persisted private key from the specified Certificate object.

public:
 static IAsyncOperation<CryptographicKey ^> ^ OpenKeyPairFromCertificateAsync(Certificate ^ certificate, Platform::String ^ hashAlgorithmName, CryptographicPadding padding);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<CryptographicKey> OpenKeyPairFromCertificateAsync(Certificate const& certificate, winrt::hstring const& hashAlgorithmName, CryptographicPadding const& padding);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<CryptographicKey> OpenKeyPairFromCertificateAsync(Certificate certificate, string hashAlgorithmName, CryptographicPadding padding);
function openKeyPairFromCertificateAsync(certificate, hashAlgorithmName, padding)
Public Shared Function OpenKeyPairFromCertificateAsync (certificate As Certificate, hashAlgorithmName As String, padding As CryptographicPadding) As IAsyncOperation(Of CryptographicKey)

Parameters

certificate
Certificate

The certificate that is associated with the private key.

hashAlgorithmName
String

Platform::String

winrt::hstring

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

padding
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

Applies to

See also