isExpired
Extension functions for common VerifiableCredential and VerifiablePresentation operations.
Provides convenient, ergonomic methods for common credential and presentation manipulations. These extensions improve code readability and reduce boilerplate.
Check if a credential is expired at the current time.
A credential is considered expired once the current time is after the earliest of its expirationDate (VC 1.1) and validUntil (VC 2.0). Temporal only: revocation and the proof are not considered.
Example:
if (credential.isExpired()) {
println("Credential expired on ${credential.expirationDate}")
}Content copied to clipboard
Return
True if the earliest of expirationDate/validUntil has passed, false otherwise