Class RequestHashAuthenticator

All Implemented Interfaces:
RequestAuthenticator

public class RequestHashAuthenticator extends AbstractPrivateKeyAuthenticator implements RequestAuthenticator
RequestHashAuthenticator
  • Constructor Details

    • RequestHashAuthenticator

      public RequestHashAuthenticator()
    • RequestHashAuthenticator

      public RequestHashAuthenticator(HashService hashService, List<String> lSignatureElements, String strPrivateKey)
  • Method Details

    • isRequestAuthenticated

      public boolean isRequestAuthenticated(jakarta.servlet.http.HttpServletRequest request)
      Check the Authentication of a request
      Specified by:
      isRequestAuthenticated in interface RequestAuthenticator
      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
      Specified by:
      getSecurityInformations in interface RequestAuthenticator
      Parameters:
      elements - List of elements to include in the signature
      Returns:
      AuthenticateRequestInformations
    • addExtrasUrlParameters

      public String addExtrasUrlParameters(String strUrl, List<String> listElements)
      Add extra URL parameters
      Parameters:
      strUrl - The URL
      listElements - extra elements
      Returns:
      The new URL