Edit

Share via


X509CertificateKeyAccessors.GetCompositeMLDsaPublicKey Method

Definition

Gets the CompositeMLDsa public key from this certificate.

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

Parameters

certificate
X509Certificate2

The X.509 certificate that contains the public key.

Returns

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

Attributes

Exceptions

certificate is null.

The certificate has a Composite ML-DSA public key, but the platform does not support Composite ML-DSA.

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

Applies to