Class AbstractJWTAuthenticator

java.lang.Object
fr.paris.lutece.util.signrequest.AbstractAuthenticator
fr.paris.lutece.util.signrequest.AbstractJWTAuthenticator
All Implemented Interfaces:
RequestAuthenticator
Direct Known Subclasses:
AbstractJWTRSAAuthenticator, JWTNoEncryptionAuthenticator, JWTSecretKeyAuthenticator

public abstract class AbstractJWTAuthenticator extends AbstractAuthenticator
AbstractAuthenticator
  • Constructor Details

    • AbstractJWTAuthenticator

      public AbstractJWTAuthenticator(Map<String,String> mapClaimsToCheck, String strJWTHttpHeader, long lValidityTimePeriod)
      Constructor
      Parameters:
      mapClaimsToCheck - The map of claims key/values to check in the JWT
      strJWTHttpHeader - The name of the header which contains the JWT
      lValidityTimePeriod - The validity time period
  • Method Details

    • isRequestAuthenticated

      public boolean isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
      Check the Authentication of a request
      Parameters:
      request - The HTTP request
      Returns:
      true if authenticated, otherwise false