org.aselect.server.request.handler.entree.sso.service
Class SSOServiceHandler

java.lang.Object
  extended by org.aselect.server.request.handler.AbstractRequestHandler
      extended by org.aselect.server.request.handler.entree.sso.service.SSOServiceHandler
All Implemented Interfaces:
IRequestHandler

public class SSOServiceHandler
extends AbstractRequestHandler

The SSO service handler is where the user is redirected to after authentication with the ELO.

Description:
The handler receives the request sent by the user. The request's rid parameter is extracted and the associated session variables are loaded to create a TGT for the user.

Concurrency issues:
-

Author:
Alfa & Ariss

Field Summary
 
Fields inherited from class org.aselect.server.request.handler.AbstractRequestHandler
_configManager, _oServletConfig, _oSessionManager, _systemLogger
 
Constructor Summary
SSOServiceHandler()
          Default constructor

Description:
Initializes the ELO store, if needed.
 
Method Summary
 void destroy()
          Doesn't 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 request.
 
Methods inherited from class org.aselect.server.request.handler.AbstractRequestHandler
getID, getPattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSOServiceHandler

public SSOServiceHandler()
                  throws ASelectException
Default constructor

Description:
Initializes the ELO store, if needed.

Concurrency issues:
-

Preconditions:
-

Postconditions:
-

Throws:
ASelectException - If the ELO store cannot be initialized.
Method Detail

init

public void init(javax.servlet.ServletConfig oServletConfig,
                 java.lang.Object oConfig)
          throws ASelectException
Initialization of the handler. Reads the configuration.

Specified by:
init in interface IRequestHandler
Overrides:
init in class AbstractRequestHandler
Parameters:
oServletConfig - Servlet Config of the Parent servlet
oConfig - Object containing the RequestHandler configuration
Throws:
ASelectException - if initalization fails
See Also:
AbstractRequestHandler.init(javax.servlet.ServletConfig, java.lang.Object)

destroy

public void destroy()
Doesn't 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 request. Requires the 'rid' parameter and loads the associated session variables.

Parameters:
request - HttpServletRequest containing the request
response - 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.