Class BasicExpiringJWKCredential

All Implemented Interfaces:
ExpiringJWKCredential, JWKCredential, Credential, MutableCredential

public class BasicExpiringJWKCredential extends BasicJWKCredential implements ExpiringJWKCredential
Basic implementation of an ExpiringJWKCredential.
Since:
2.2.0
  • Field Details

    • credentialExpiresAt

      @Nullable private Duration credentialExpiresAt
      When the credential expires in seconds since 1970-01-01T0:0:0Z. 0 seconds represents no expiry.
  • Constructor Details

    • BasicExpiringJWKCredential

      public BasicExpiringJWKCredential()
  • Method Details

    • getCredentialExpiresAt

      @Nullable public Duration getCredentialExpiresAt()
      Time at which the client_secret will expire or 0 if it will not expire. Its value represents the number of seconds from 1970-01-01T0:0:0Z.
      Specified by:
      getCredentialExpiresAt in interface ExpiringJWKCredential
      Returns:
      the expiry duration
    • setCredentialExpiresAt

      public void setCredentialExpiresAt(@Nonnull Duration expiresAt)
      Set the expiry.
      Parameters:
      expiresAt - the expiry