Package com.liveperson.faas.security
Class JwtExpiryTester
- java.lang.Object
-
- com.liveperson.faas.security.JwtExpiryTester
-
- All Implemented Interfaces:
AuthExpiryTester
public class JwtExpiryTester extends Object implements AuthExpiryTester
-
-
Constructor Summary
Constructors Constructor Description JwtExpiryTester()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAboutToExpire(String token)booleanisExpired(String token)
-
-
-
Method Detail
-
isExpired
public boolean isExpired(String token)
- Specified by:
isExpiredin interfaceAuthExpiryTester- Parameters:
token- that is checked for expiry- Returns:
- true if token is expired, else false
-
isAboutToExpire
public boolean isAboutToExpire(String token)
- Specified by:
isAboutToExpirein interfaceAuthExpiryTester- Parameters:
token- that is checked for expiry in next 30 minutes- Returns:
- true if token is about to expire, else false
-
-