共用方式為


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 物件擷取私密金鑰的非同步作業。

屬性

適用於

另請參閱