X509CertificateKeyAccessors.GetSlhDsaPublicKey(X509Certificate2) Method

Definition

Gets the SlhDsa public key from this certificate.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Security::Cryptography::SlhDsa ^ GetSlhDsaPublicKey(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.SlhDsa? GetSlhDsaPublicKey(this System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
public static System.Security.Cryptography.SlhDsa? GetSlhDsaPublicKey(this System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member GetSlhDsaPublicKey : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.Security.Cryptography.SlhDsa
static member GetSlhDsaPublicKey : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.Security.Cryptography.SlhDsa
<Extension()>
Public Function GetSlhDsaPublicKey (certificate As X509Certificate2) As SlhDsa

Parameters

certificate
X509Certificate2

The X509 certificate that contains the public key.

Returns

The public key, or null if this certificate does not have an SLH-DSA public key.

Attributes

Exceptions

certificate is null.

The certificate has an SLH-DSA public key, but the platform does not support SLH-DSA.

The public key was invalid, or otherwise could not be imported.

Applies to