Edit

Share via


X509Certificate2.GetSlhDsaPublicKey Method

Definition

Gets the SlhDsa public key from this certificate.

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

Returns

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

Attributes

Exceptions

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