Class AbstractJWTRSAAuthenticator

All Implemented Interfaces:
RequestAuthenticator
Direct Known Subclasses:
JWTRSAKeyStoreFileAuthenticator, JWTRSAPlainTextAuthenticator, JWTRSATrustStoreFileAuthenticator

public abstract class AbstractJWTRSAAuthenticator extends AbstractJWTAuthenticator
  • Constructor Details

    • AbstractJWTRSAAuthenticator

      public AbstractJWTRSAAuthenticator(Map<String,String> mapClaimsToCheck, String strJWTHttpHeader, long lValidityPeriod, String strEncryptionAlgorythmName)
      Constructor
      Parameters:
      mapClaimsToCheck - The map of claims key/values to check in the JWT
      strJWTHttpHeader - The name of the header which contains the JWT
      lValidityPeriod - The validity period
      strEncryptionAlgorythmName - The name of the algorithm.
  • 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