PersistedKeyProvider.OpenPublicKeyFromCertificate Method

Definition

Opens the persisted public key from the specified Certificate object.

public:
 static CryptographicKey ^ OpenPublicKeyFromCertificate(Certificate ^ certificate, Platform::String ^ hashAlgorithmName, CryptographicPadding padding);
 static CryptographicKey OpenPublicKeyFromCertificate(Certificate const& certificate, winrt::hstring const& hashAlgorithmName, CryptographicPadding const& padding);
public static CryptographicKey OpenPublicKeyFromCertificate(Certificate certificate, string hashAlgorithmName, CryptographicPadding padding);
function openPublicKeyFromCertificate(certificate, hashAlgorithmName, padding)
Public Shared Function OpenPublicKeyFromCertificate (certificate As Certificate, hashAlgorithmName As String, padding As CryptographicPadding) As CryptographicKey

Parameters

certificate
Certificate

The certificate that contains the public key.

hashAlgorithmName
String

Platform::String

winrt::hstring

The has algorithm for signature operations.

padding
CryptographicPadding

The padding mode for asymmetric algorithm signature or encryption operations.

Returns

The public key retrieved from the supplied Certificate object.

Applies to

See also