Package org.picketlink.test.identity.federation.bindings.mock

Examples of org.picketlink.test.identity.federation.bindings.mock.MockCatalinaContextClassLoader


        auth.setContainer(ctx);

        ClassLoader tccl = Thread.currentThread().getContextClassLoader();
        URL configURL = tccl.getResource("config/test-idp-metadata-file-config.xml");
        URL[] urls = new URL[] { configURL };
        MockCatalinaContextClassLoader tcl = new MockCatalinaContextClassLoader(urls);
        tcl.associate("/WEB-INF/picketlink-idfed.xml", configURL.openStream());
        tcl.associate("/WEB-INF/picketlink-handlers.xml",
                tccl.getResourceAsStream("saml2/post/sp/employee/WEB-INF/picketlink-handlers.xml"));
        tcl.associate("/WEB-INF/testshib.org.idp-metadata.xml",
                tccl.getResourceAsStream("metadata/testshib.org.idp-metadata.xml"));
        tcl.setProfile("DUMMY");
        tcl.setDelegate(tccl);

        Thread.currentThread().setContextClassLoader(tcl);
        auth.testStart();
        assertEquals("https://idp.testshib.org/idp/profile/SAML2/POST/SSO", auth.getIdentityURL());
        X509Certificate idpCert = auth.getIdpCertificate();
View Full Code Here

TOP

Related Classes of org.picketlink.test.identity.federation.bindings.mock.MockCatalinaContextClassLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.