ComponentSpace SAML Class Library Reference

X509CertificateHelper.GetPublicKey Method 

Retrieves the public key from the X.509 certificate.

[Visual Basic]
Public Shared Function GetPublicKey( _
   ByVal x509Certificate As X509Certificate _
) As AsymmetricAlgorithm
[C#]
public static AsymmetricAlgorithm GetPublicKey(
   X509Certificate x509Certificate
);

Parameters

x509Certificate
The X.509 certificate.

Return Value

The public key.

Exceptions

Exception Type Condition
CertificateException Thrown when the public key cannot be retrieved from the certificate.

See Also

X509CertificateHelper Class | ComponentSpace.CryptoHelper Namespace