<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.18.0" />

Microsoft.IdentityModel.Tokens.Experimental.ValidatedLifetime

Represents a validated lifetime, including the NotBefore and Expires values.
public DateTime? Expires { get; }

The DateTime representing the token's expiration time.

public DateTime? NotBefore { get; }

The DateTime representing the time from which the token is considered valid.

public ValidatedLifetime(DateTime? notBefore, DateTime? expires)

Initializes a new instance of ValidatedLifetime.

public static bool op_Equality(ValidatedLifetime left, ValidatedLifetime right)

Equality comparison operator for ValidatedLifetime.

public static bool op_Inequality(ValidatedLifetime left, ValidatedLifetime right)

Inequality comparison operator for ValidatedLifetime.

public bool Equals(ValidatedLifetime other)

Determines whether the specified ValidatedLifetime is equal to the current instance.