All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liveperson.faas.security.AuthExpiryTester Maven / Gradle / Ivy

Go to download

Functions client for invoking lambdas via the eventsource gateway (a.k.a Asgard)

There is a newer version: 1.2.3
Show newest version
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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy