PersistedKeyProvider.OpenKeyPairFromCertificateAsync 方法

定义

打开指定的 Certificate 对象中的持久私钥。

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)

参数

certificate
Certificate

与私钥关联的证书。

hashAlgorithmName
String

Platform::String

winrt::hstring

签名操作的哈希算法。 对于加密,将忽略哈希算法。

padding
CryptographicPadding

非对称算法签名或加密操作的填充模式。

返回

用于从提供的 Certificate 对象检索私钥的异步操作。

属性

适用于

另请参阅