com.liveperson.faas.security.AuthExpiryTester Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of functions-client Show documentation
Show all versions of functions-client Show documentation
Functions client for invoking lambdas via the eventsource gateway (a.k.a Asgard)
package com.liveperson.faas.security;
/**
* Examines whether a token is expired or about to expire
*
* @author sschwarz
*/
public interface AuthExpiryTester {
/**
* @param token that is checked for expiry
* @return true if token is expired, else false
*/
boolean isExpired(String token);
/**
* @param token that is checked for expiry in next 30 minutes
* @return true if token is about to expire, else false
*/
boolean isAboutToExpire(String token);
}