handing hrf object to AA for in memory use
authorblk <blk@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 17 Jun 2002 17:20:12 +0000 (17:20 +0000)
committerblk <blk@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 17 Jun 2002 17:20:12 +0000 (17:20 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@135 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/hs/HandleServlet.java

index 222cd3a..e3b84f9 100644 (file)
@@ -20,9 +20,11 @@ public class HandleServlet extends HttpServlet {
     {
        super.init(conf);
        getInitParams();
     {
        super.init(conf);
        getInitParams();
+       ServletConfig sc = getServletConfig();
+       ServletContext sctx = sc.getServletContext();
 
        try {
 
        try {
-           InputStream is = getServletContext().getResourceAsStream
+           InputStream is = sctx.getResourceAsStream
                (getInitParameter("KSpath"));
            hsSAML = new HandleServiceSAML( getInitParameter("domain"), 
                                            getInitParameter("AAurl"),
                (getInitParameter("KSpath"));
            hsSAML = new HandleServiceSAML( getInitParameter("domain"), 
                                            getInitParameter("AAurl"),
@@ -51,6 +53,9 @@ public class HandleServlet extends HttpServlet {
        catch (Exception ex) {
            throw new ServletException( "Error initializing private KeyStore: " +ex );
        }
        catch (Exception ex) {
            throw new ServletException( "Error initializing private KeyStore: " +ex );
        }
+
+       sctx.setAttribute("HandleRepository", hrf);
+
        if (hsSAML == null) {
            throw new ServletException( "Error initializing SAML libraries: No Profile created." );
        }  
        if (hsSAML == null) {
            throw new ServletException( "Error initializing SAML libraries: No Profile created." );
        }