Class MdocValidityInfo

java.lang.Object
org.keycloak.mdoc.MdocValidityInfo

public class MdocValidityInfo extends Object
Validity information for the ISO mdoc Mobile Security Object. The MSO records when the issuer signed the credential, when it becomes valid, and when it expires.
  • Constructor Details

  • Method Details

    • issuedAt

      public static MdocValidityInfo issuedAt(Instant issuanceInstant, Instant expirationInstant)
      Creates validity information where signed and validFrom both equal the issuance time.
      Parameters:
      issuanceInstant - issuance time used for signed and validFrom
      expirationInstant - instant after which the mDoc is no longer valid
      Returns:
      MSO validity information
    • getSigned

      public Instant getSigned()
    • getValidFrom

      public Instant getValidFrom()
    • getValidUntil

      public Instant getValidUntil()