Interface AuthExpiryTester

  • All Known Implementing Classes:
    JwtExpiryTester

    public interface AuthExpiryTester
    Examines whether a token is expired or about to expire
    Author:
    sschwarz
    • Method Detail

      • isExpired

        boolean isExpired​(String token)
        Parameters:
        token - that is checked for expiry
        Returns:
        true if token is expired, else false
      • isAboutToExpire

        boolean isAboutToExpire​(String token)
        Parameters:
        token - that is checked for expiry in next 30 minutes
        Returns:
        true if token is about to expire, else false