X509CertificateKeyAccessors.GetCompositeMLDsaPrivateKey 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 CompositeMLDsa private key from this certificate.
public:
[System::Runtime::CompilerServices::Extension]
static System::Security::Cryptography::CompositeMLDsa ^ GetCompositeMLDsaPrivateKey(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.CompositeMLDsa? GetCompositeMLDsaPrivateKey(this System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
public static System.Security.Cryptography.CompositeMLDsa? GetCompositeMLDsaPrivateKey(this System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member GetCompositeMLDsaPrivateKey : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.Security.Cryptography.CompositeMLDsa
static member GetCompositeMLDsaPrivateKey : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.Security.Cryptography.CompositeMLDsa
<Extension()>
Public Function GetCompositeMLDsaPrivateKey (certificate As X509Certificate2) As CompositeMLDsa
Parameters
- certificate
- X509Certificate2
The X.509 certificate that contains the private key.
Returns
The private key, or null if this certificate does not have a Composite ML-DSA private key.
- Attributes
Exceptions
certificate is null.
Retrieving a Composite ML-DSA private key from a certificate is not supported on this platform.
An error occurred accessing the private key.