package at.gv.egovernment.moa.id.auth.servlet;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import at.gv.egovernment.moa.id.MOAIDException;
import at.gv.egovernment.moa.id.auth.AuthenticationServer;
import at.gv.egovernment.moa.id.auth.MOAIDAuthConstants;
import at.gv.egovernment.moa.id.auth.data.AuthenticationSession;
import at.gv.egovernment.moa.logging.Logger;
import at.gv.egovernment.moa.util.OutputXML2File;
/**
* Servlet requested for verifying the signed authentication block
* provided by the security layer implementation.
* Utilizes the {@link AuthenticationServer}.
*
* @author Paul Ivancsics
* @version $Id$
*/
public class VerifyAuthenticationBlockServlet extends AuthServlet {
/**
* Constructor for VerifyAuthenticationBlockServlet.
*/
public VerifyAuthenticationBlockServlet() {
super();
}
/**
* GET requested by security layer implementation to verify
* that data URL resource is available.
* @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest, HttpServletResponse)
*/
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
Logger.debug("GET VerifyAuthenticationBlock");
}
/**
* Verifies the signed authentication block and redirects the browser
* to the online application requested, adding a parameter needed for
* retrieving the authentication data.
*
* Request parameters:
*
<CreateXMLSignatureResponse>
302
"Location"
: URL of the online application requested, with
* parameters "Target"
and "SAMLArtifact"
added500
*