Interface IAuthChallengeResponse
public interface IAuthChallengeResponse
Exposes the runtime information of handling an auth challenge response
-
Method Summary
Modifier and TypeMethodDescriptiongetLogoutURL
(HttpServletRequest request) Returns full URL for logout request.int
handle
(HttpServletRequest request, HttpServletResponse response) Handles the request.void
init
(IAuthScheme authScheme) Initialize this authChallengeResponse with it's IAuthScheme
-
Method Details
-
init
Initialize this authChallengeResponse with it's IAuthScheme- Parameters:
authScheme
-- Throws:
PortalException
-
handle
Handles the request. The response value tells thecom.webmethods.portal.framework.dispatch.DispatchManager
how to further handle the request. Prior to thecom.webmethods.portal.framework.dispatch.DispatchManager
delegating to the IDispatchHandler, a PresentationData is associated with the HttpServletRequest. The following response are valid:
- DISP_RESPONSE_NONE: The work is complete, don't do anything further
- DISP_RESPONSE_REDIRECT: Redirect this request with an http Redirect using the
PresentationData
- DISP_RESPONSE_FORWARD: Forward the request to another IDispatchHandler
- DISP_RESPONSE_FORWARD_RAW: Forward the request to another IDispatchHandler without checking the type
- DISP_RESPONSE_FORWARD_DEFAULT_GET: Forward the request to the default get IDispatchHandler for the requested resource
- DISP_RESPONSE_STREAM: Stream the
PresentationData
back to the user - DISP_RESPONSE_PRES: Delegate to the
IPresentationManager
- Parameters:
request
- the current HttpServletRequestresponse
- the current HttpServletResponse- Throws:
FrameworkException
-
getLogoutURL
Returns full URL for logout request. If there is no URL that that a user can dereference to logout, this method returns null. If the URL is a portal URL, it should include the portal servlet path. For example, the full URL to logout of forms auth is '[full-servlet-path]?method=logout'.- Parameters:
request
- HTTP request initialized with portal context info.- Returns:
- Full logout URL or null.
- Throws:
PortalException
-