Class JWTNoEncryptionAuthenticator

All Implemented Interfaces:
RequestAuthenticator

public class JWTNoEncryptionAuthenticator extends AbstractJWTAuthenticator
  • Constructor Details

    • JWTNoEncryptionAuthenticator

      public JWTNoEncryptionAuthenticator(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
  • Method Details

    • isRequestAuthenticated

      public boolean isRequestAuthenticated(javax.servlet.http.HttpServletRequest request)
      Check the Authentication of a request
      Specified by:
      isRequestAuthenticated in interface RequestAuthenticator
      Overrides:
      isRequestAuthenticated in class AbstractJWTAuthenticator
      Parameters:
      request - The HTTP request
      Returns:
      true if authenticated, otherwise false
    • getSecurityInformations

      public AuthenticateRequestInformations getSecurityInformations(List<String> elements)
      return Security informations to put in the request headers and request parameters
      Parameters:
      elements - List of elements to include in the signature
      Returns:
      AuthenticateRequestInformations