org.aselect.server.request.handler.shibboleth
Class ShibbolethAuthenticationProfile

java.lang.Object
  extended by org.aselect.server.request.handler.AbstractRequestHandler
      extended by org.aselect.server.request.handler.shibboleth.ShibbolethAuthenticationProfile
All Implemented Interfaces:
IRequestHandler

public class ShibbolethAuthenticationProfile
extends AbstractRequestHandler

Shibboleth interface for A-Select.

Description:
The Shibboleth interface for the A-Select Server.
HTTP GET containg the following items in the querystring



Concurrency issues:
-

Author:
Alfa & Ariss

Field Summary
 
Fields inherited from class org.aselect.server.request.handler.AbstractRequestHandler
_configManager, _oServletConfig, _oSessionManager, _systemLogger
 
Constructor Summary
ShibbolethAuthenticationProfile()
           
 
Method Summary
 void destroy()
          Removes the class variables from memory

 void init(javax.servlet.ServletConfig oServletConfig, java.lang.Object oConfig)
          Initializes the request handler by reading the following configuration:

<handler>
 <clientcommunicator>[clientcommunicator]</clientcommunicator>
 <response_uri>[response_uri]</response_uri>
 <time offset='[offset]'/>
 <providers>
  <provider id='[providerId]' app_id='[app_id]'/>
  ...
 </providers>
</handler>
clientcommunicator - Client communicator used for communicating to the A-Select Server SAML 11 requesthandler (raw/soap11/soap12) response_uri - URI to the SAML 1.1 requesthandler offset - time offset in seconds providerId - The providerId that corresponds to the A-Select application ID app_id - The A-Select Application id that corresponds to the providerId

 RequestState process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Processes the following request:
?providerId=[providerId]&shire=[shire]&target=[target]&time=[time]
The time parameter is optional, if available the request will be checked for expiration.
 
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

ShibbolethAuthenticationProfile

public ShibbolethAuthenticationProfile()
Method Detail

init

public void init(javax.servlet.ServletConfig oServletConfig,
                 java.lang.Object oConfig)
          throws ASelectException
Initializes the request handler by reading the following configuration:

<handler>
 <clientcommunicator>[clientcommunicator]</clientcommunicator>
 <response_uri>[response_uri]</response_uri>
 <time offset='[offset]'/>
 <providers>
  <provider id='[providerId]' app_id='[app_id]'/>
  ...
 </providers>
</handler>


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)

process

public RequestState process(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response)
                     throws ASelectException
Processes the following request:
?providerId=[providerId]&shire=[shire]&target=[target]&time=[time]
The time parameter is optional, if available the request will be checked for expiration. A request is expired if the sent time has a bigger delay then the configured offset.

During processing, the following steps are runned through:

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)

destroy

public void destroy()
Removes the class variables from memory

See Also:
IRequestHandler.destroy()


Copyright © 2008 SURFnet BV. All Rights Reserved.