Class BasicExpiringJWKCredential

    • Field Detail

      • credentialExpiresAt

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

      • BasicExpiringJWKCredential

        public BasicExpiringJWKCredential()
    • Method Detail

      • getCredentialExpiresAt

        public Duration getCredentialExpiresAt()
        Description copied from interface: ExpiringJWKCredential
        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 in seconds since 1970-01-01T0:0:0Z.
        Parameters:
        expiresAt - the expiry.