Edit

Share via


X509Certificate2.GetCompositeMLDsaPrivateKey Method

Definition

Gets the CompositeMLDsa private key from this certificate.

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

Returns

The private key, or null if this certificate does not have a Composite ML-DSA private key.

Attributes

Exceptions

Retrieving a Composite ML-DSA private key from a certificate is not supported on this platform.

An error occurred accessing the private key.

Applies to