X509CertificateKeyAccessors.GetMLDsaPublicKey(X509Certificate2) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the MLDsa public key from this certificate.
public:
[System::Runtime::CompilerServices::Extension]
static System::Security::Cryptography::MLDsa ^ GetMLDsaPublicKey(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.MLDsa? GetMLDsaPublicKey(this System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
public static System.Security.Cryptography.MLDsa? GetMLDsaPublicKey(this System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member GetMLDsaPublicKey : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.Security.Cryptography.MLDsa
static member GetMLDsaPublicKey : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.Security.Cryptography.MLDsa
<Extension()>
Public Function GetMLDsaPublicKey (certificate As X509Certificate2) As MLDsa
Parameters
- certificate
- X509Certificate2
The X.509 certificate that contains the public key.
Returns
The public key, or null if this certificate does not have an ML-DSA public key.
- Attributes
Exceptions
certificate is null.
The certificate has an ML-DSA public key, but the platform does not support ML-DSA.
The public key was invalid, or otherwise could not be imported.