Class HeaderHashAuthenticator

All Implemented Interfaces:
RequestAuthenticator

public class HeaderHashAuthenticator extends AbstractPrivateKeyAuthenticator implements RequestAuthenticator
HeaderHashAuthenticator
  • Constructor Details

    • HeaderHashAuthenticator

      public HeaderHashAuthenticator()
    • HeaderHashAuthenticator

      public HeaderHashAuthenticator(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