Microsoft.Identity.Client.ManagedIdentity.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.
namespace Microsoft.Identity.Client.ManagedIdentity
{
internal sealed class ManagedIdentityKeyInfo
{
public RSA Key { get; }
public ManagedIdentityKeyType Type { get; }
public string ProviderMessage { get; }
public ManagedIdentityKeyInfo(RSA keyInfo, ManagedIdentityKeyType type, string providerMessage);
}
}