Interface TokenRevocationStoreProvider

    • Method Detail

      • putRevokedToken

        void putRevokedToken​(String tokenId,
                             long lifespanSeconds)
        Mark given token as revoked. Parameter "lifespanSeconds" is the time for which the token is considered revoked. After this time, it may be removed from this store, which means that isRevoked(java.lang.String) method will return false. In reality, the token will usually still be invalid due the "expiration" claim on it, however that is out of scope of this provider.
        Parameters:
        tokenId -
      • isRevoked

        boolean isRevoked​(String tokenId)
        Parameters:
        tokenId -
        Returns:
        true if token exists in the store, which indicates that it is revoked.