Package com.liveperson.faas.security
Interface AuthExpiryTester
-
- All Known Implementing Classes:
JwtExpiryTester
public interface AuthExpiryTesterExamines whether a token is expired or about to expire- Author:
- sschwarz
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisAboutToExpire(String token)booleanisExpired(String token)
-
-
-
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
-
-