org.aselect.server.request.handler.entree.sso.cookiemonster
Class CookieMonsterHandler
java.lang.Object
org.aselect.server.request.handler.AbstractRequestHandler
org.aselect.server.request.handler.entree.sso.cookiemonster.CookieMonsterHandler
- All Implemented Interfaces:
- IRequestHandler
public class CookieMonsterHandler
- extends AbstractRequestHandler
This handler receives requests sent by the ELO to indicate that a certain user
has authenticated.
Description:
The ELO sends the following parameters with its request to the Cookie Monster:
rid
- the request ID, associated with the current
authentication session. The rid was initially sent to the ELO by the WAYF in the authentication
initialization request.
uid
- The user ID, as used by the ELO.
shared_secret
- The secret code that was established on the registration
of the ELO at the A-Select server.
attributes
(optional) - A string of URL-encoded attributes.
Concurrency issues:
-
- Author:
- Alfa & Ariss
Method Summary |
void |
destroy()
Does not really do anything. |
void |
init(javax.servlet.ServletConfig oServletConfig,
java.lang.Object oConfig)
Initialization of the handler. |
RequestState |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes the Cookie Monster request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CookieMonsterHandler
public CookieMonsterHandler()
init
public void init(javax.servlet.ServletConfig oServletConfig,
java.lang.Object oConfig)
throws ASelectException
- Initialization of the handler.
- Specified by:
init
in interface IRequestHandler
- Overrides:
init
in class AbstractRequestHandler
- Parameters:
oServletConfig
- Servlet Config of the Parent servletoConfig
- Object containing the RequestHandler configuration
- Throws:
ASelectException
- if initalization fails- See Also:
AbstractRequestHandler.init(javax.servlet.ServletConfig, java.lang.Object)
destroy
public void destroy()
- Does not really do anything.
- See Also:
IRequestHandler.destroy()
process
public RequestState process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws ASelectException
- Processes the Cookie Monster request.
- Parameters:
request
- HttpServletRequest containing the requestresponse
- HttpServletResponse containing the response
- Returns:
- RequestState containing the request handling state
- Throws:
ASelectException
- if the request couldn't be processed- See Also:
IRequestHandler.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
Copyright © 2008 SURFnet BV. All Rights Reserved.