Class JwtExpiryTester

    • Constructor Detail

      • JwtExpiryTester

        public JwtExpiryTester()
    • Method Detail

      • isExpired

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

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