PersistedKeyProvider
PersistedKeyProvider
PersistedKeyProvider
PersistedKeyProvider
Class
Definition
Retrieves a persisted key from a Certificate object.
public : static class PersistedKeyProviderpublic static class PersistedKeyProviderPublic Static Class PersistedKeyProvider// You can use this class in JavaScript.
- 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) 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 )// You can use this method in JavaScript.
Parameters
- certificate
- Certificate Certificate Certificate Certificate
The certificate that is associated with the private key.
- hashAlgorithmName
- PlatForm::String String String String
The hash algorithm for signature operations. For encryption, the hash algorithm is ignored.
The padding mode for asymmetric algorithm signature or encryption operations.
Returns
IAsyncOperation<CryptographicKey>
IAsyncOperation<CryptographicKey>
IAsyncOperation<CryptographicKey>
IAsyncOperation<CryptographicKey>
An asynchronous operation for retrieving a private key from the supplied Certificate object.
- See Also
OpenPublicKeyFromCertificate(Certificate, String, CryptographicPadding) 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// You can use this method in JavaScript.
Parameters
- certificate
- Certificate Certificate Certificate Certificate
The certificate that contains the public key.
- hashAlgorithmName
- PlatForm::String String String String
The has algorithm for signature operations.
The padding mode for asymmetric algorithm signature or encryption operations.
Returns
The public key retrieved from the supplied Certificate object.
- See Also