<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.22.0" />

Microsoft.IdentityModel.Tokens.MlDsaSecurityKey

Represents an ML-DSA security key.
public MLDsa MLDsa { get; }

The MLDsa instance used to initialize the key.

public MlDsaSecurityKey(MLDsa mlDsa)

Initializes a new instance of the MlDsaSecurityKey class.

public void 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).

protected virtual void Dispose(bool disposing)

Releases unmanaged and, optionally, managed resources.