Class ClientHeaderHashAuthenticator

    • Constructor Detail

      • ClientHeaderHashAuthenticator

        public ClientHeaderHashAuthenticator()
    • Method Detail

      • setClientId

        public void setClientId​(java.lang.String strClientId)
        Set the client ID This setter should be used in the Spring context file of the CLIENT to declare the client ID.
        Parameters:
        strClientId - The client ID
      • setClientKeyService

        public void setClientKeyService​(ClientKeyService clientKeyService)
        Set the clientKeyService This setter should be used in the Spring context file of the SERVER to provide a lookup service to find keys for given client ids.
        Parameters:
        clientKeyService - The client key service
      • isRequestAuthenticated

        public boolean isRequestAuthenticated​(javax.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​(java.util.List<java.lang.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