MlDsaSecurityKey Class
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.
Represents an ML-DSA security key.
public class MlDsaSecurityKey : Microsoft.IdentityModel.Tokens.AsymmetricSecurityKey, IDisposable
type MlDsaSecurityKey = class
inherit AsymmetricSecurityKey
interface IDisposable
Public Class MlDsaSecurityKey
Inherits AsymmetricSecurityKey
Implements IDisposable
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| MlDsaSecurityKey(MLDsa) |
Initializes a new instance of the MlDsaSecurityKey class. |
Properties
| Name | Description |
|---|---|
| CryptoProviderFactory |
Gets or sets CryptoProviderFactory. (Inherited from SecurityKey) |
| HasPrivateKey |
Obsolete.
Gets a bool indicating if a private key exists. |
| KeyId |
Gets the key id of this SecurityKey. (Inherited from SecurityKey) |
| KeySize |
Gets the ML-DSA key size in bits. |
| MLDsa |
The MLDsa instance used to initialize the key. |
| PrivateKeyStatus |
Gets a value indicating the existence of the private key. |
Methods
| Name | Description |
|---|---|
| CanComputeJwkThumbprint() |
Determines whether the MlDsaSecurityKey can compute a JWK thumbprint. |
| ComputeJwkThumbprint() |
Computes a SHA256 hash over the MlDsaSecurityKey. |
| Dispose() |
Releases resources held by this instance. Only disposes the MLDsa if this key owns the instance (i.e., the instance was created internally from a JsonWebKey). |
| Dispose(Boolean) |
Releases unmanaged and, optionally, managed resources. |
| IsSupportedAlgorithm(String) |
Checks if CryptoProviderFactory can perform the cryptographic operation specified by the |
| ToString() |
Returns the formatted string: GetType(), KeyId: 'value', InternalId: 'value'. (Inherited from SecurityKey) |