<PackageReference Include="Microsoft.Identity.Client" Version="4.83.0-preview-1" />

Microsoft.Identity.Client.ManagedIdentity.KeyProviders.InMemoryManagedIdentityKeyProvider

In-memory RSA key provider for managed identity authentication.

public static RSA CreateRsaKeyPair()

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.

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.