Class HTTPRequestHandler

    • Constructor Detail

      • HTTPRequestHandler

        public HTTPRequestHandler()
    • Method Detail

      • init

        public void init​(Map config)
        Initialize the HTTP Request handler with a configuration map.
        Specified by:
        init in interface HTTPRequestHandlerInterface
        Parameters:
        config - the configuration map.
      • shouldAuthenticate

        public boolean shouldAuthenticate​(Subject subject,
                                          jakarta.servlet.http.HttpServletRequest request)
        Checks whether client should be authenticated or not.
        Specified by:
        shouldAuthenticate in interface HTTPRequestHandlerInterface
        Parameters:
        subject - the subject that may be used by the callers to store Principals and credentials validated in the request.
        request - the HttpServletRequest associated with this Client message request.
        Returns:
        true if the client should be authenticated
      • getLoginURL

        public String getLoginURL​(jakarta.servlet.http.HttpServletRequest request)
        Returns Login URL for client to be redirected.
        Specified by:
        getLoginURL in interface HTTPRequestHandlerInterface
        Parameters:
        request - the HttpServletRequest.
        Returns:
        String Login URL