net.geant.edugain.base.websso
Class WebSSOResponder

java.lang.Object
  extended by net.geant.edugain.base.websso.WebSSOResponder

public class WebSSOResponder
extends java.lang.Object

Class to be used by a 'responder' (home) bridging element to handle HTTP requests coming from a local federation that need to be translated into eduGAIN response messages. This class makes use of previously saved states about the original request that originated this response in order to create the appropriate response.

Author:
Jose Manuel Macias, Jaime Perez Crespo

Field Summary
private  org.apache.log4j.Logger log
           
 
Constructor Summary
WebSSOResponder()
          Default constructor not receiving any parameter.
WebSSOResponder(java.util.Properties props)
          Constructor receiving signing properties as a parameter.
 
Method Summary
 void sendAuthenticationResponse(AuthenticationResponse response, javax.servlet.http.HttpServletResponse httpResponse, java.net.URI location, java.net.URI target)
          Process an AuthenticationRequest request and builds the appropriate HTTP response (redirection to a RemoteBE).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private org.apache.log4j.Logger log
Constructor Detail

WebSSOResponder

public WebSSOResponder()
Default constructor not receiving any parameter. The internal signingProperties initialized using the values from the eduGAIN configuration in use.


WebSSOResponder

public WebSSOResponder(java.util.Properties props)
Constructor receiving signing properties as a parameter.

Method Detail

sendAuthenticationResponse

public void sendAuthenticationResponse(AuthenticationResponse response,
                                       javax.servlet.http.HttpServletResponse httpResponse,
                                       java.net.URI location,
                                       java.net.URI target)
                                throws BaseException
Process an AuthenticationRequest request and builds the appropriate HTTP response (redirection to a RemoteBE).

Throws:
BaseException