<PackageReference Include="Microsoft.Identity.Client" Version="4.83.3" />

Microsoft.Identity.Client.ManagedIdentity.ManagedIdentityKeyInfo

sealed class ManagedIdentityKeyInfo
Encapsulates information about a Managed Identity key used for authentication. Provides the best available key and its type for Managed Identity scenarios. The caller does not need to know how the key is sourced. Key types: - KeyGuard: Key sourced from KeyGuard provider. - Hardware: Key stored in hardware (e.g., TPM). - InMemory: Key stored in memory only.
public RSA Key { get; }

public string ProviderMessage { get; }

public ManagedIdentityKeyType Type { get; }

public ManagedIdentityKeyInfo(RSA keyInfo, ManagedIdentityKeyType type, string providerMessage)

Initializes a new instance of the ManagedIdentityKeyInfo class.