Microsoft.Identity.Client.ManagedIdentity.KeyProviders.InMemoryManagedIdentityKeyProvider
In-memory RSA key provider for managed identity authentication.
public InMemoryManagedIdentityKeyProvider()
Creates a new RSA key pair with 2048-bit key size for cryptographic operations.
Uses platform-specific RSA implementations: RSACng on .NET Framework and RSA.Create() on other platforms.
public Task<ManagedIdentityKeyInfo> GetOrCreateKeyAsync(ILoggerAdapter logger, CancellationToken ct)
Asynchronously retrieves or creates an RSA key pair for managed identity authentication.
Uses thread-safe caching to ensure only one key is created per provider instance.