PersistedKeyProvider.OpenPublicKeyFromCertificate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.