PersistedKeyProvider.OpenKeyPairFromCertificateAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從指定的 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 物件擷取私密金鑰的非同步作業。
- 屬性