<PackageReference Include="Microsoft.Identity.Client" Version="4.84.2-preview4-GetManagedIdentityCapabilitiesAsync" />

Microsoft.Identity.Client.ManagedIdentity.V2.CertificateCacheEntry

In-memory entry owned by the cache. Disposing the entry disposes the certificate it owns.
public static readonly TimeSpan MinRemainingLifetime

Represents the minimum remaining lifetime for an operation or resource.

public X509Certificate2 Certificate { get; }

certificate owned by this entry.

public string ClientId { get; }

clientId associated with this certificate.

public string Endpoint { get; }

endpoint associated with this certificate.

public bool IsDisposed { get; }

Whether this entry has been disposed.

public DateTimeOffset NotAfterUtc { get; }

notAfterUtc of the certificate.

public CertificateCacheEntry(X509Certificate2 certificate, DateTimeOffset notAfterUtc, string endpoint, string clientId)

certificate+endpoint+clientId cache entry.

public void Dispose()

dispose the entry and its certificate.

public bool IsExpiredUtc(DateTimeOffset nowUtc)

is expired at the specified time.