Class HTTPRequestHandler
- java.lang.Object
-
- com.sun.identity.wss.security.handler.HTTPRequestHandler
-
- All Implemented Interfaces:
HTTPRequestHandlerInterface
public class HTTPRequestHandler extends Object implements HTTPRequestHandlerInterface
This classHTTPRequestHandleris to process and secure the in-bound or out-bound HTTPRequest of the web service clients and web service providers.
-
-
Constructor Summary
Constructors Constructor Description HTTPRequestHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLoginURL(jakarta.servlet.http.HttpServletRequest request)Returns Login URL for client to be redirected.voidinit(Map config)Initialize the HTTP Request handler with a configuration map.booleanshouldAuthenticate(Subject subject, jakarta.servlet.http.HttpServletRequest request)Checks whether client should be authenticated or not.
-
-
-
Method Detail
-
init
public void init(Map config)
Initialize the HTTP Request handler with a configuration map.- Specified by:
initin interfaceHTTPRequestHandlerInterface- 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:
shouldAuthenticatein interfaceHTTPRequestHandlerInterface- Parameters:
subject- the subject that may be used by the callers to store Principals and credentials validated in the request.request- theHttpServletRequestassociated 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:
getLoginURLin interfaceHTTPRequestHandlerInterface- Parameters:
request- theHttpServletRequest.- Returns:
- String Login URL
-
-