Package org.picketlink.identity.federation.web.config

Examples of org.picketlink.identity.federation.web.config.SPPostMetadataConfigurationProvider


            if (configuration.isSupportMetadata()) {
                try {
                    SPType metadataConfig;

                    if (configuration.isPostBinding()) {
                        metadataConfig = new SPPostMetadataConfigurationProvider().getSPConfiguration();
                    } else {
                        metadataConfig = new SPRedirectMetadataConfigurationProvider().getSPConfiguration();
                    }

                    metadataConfig.importFrom(configuration);
View Full Code Here


* @since Feb 15, 2012
*/
public class SPPostMetadataConfigurationProviderUnitTestCase {
    @Test
    public void testSPType() throws ProcessingException {
        SPPostMetadataConfigurationProvider provider = new SPPostMetadataConfigurationProvider();
        SPType sp = provider.getSPConfiguration();
        assertNotNull(sp);
        assertEquals("https://sp.testshib.org/Shibboleth.sso/SAML2/POST", sp.getServiceURL());
        assertEquals("https://idp.testshib.org/idp/profile/SAML2/POST/SLO", sp.getLogoutUrl());
    }
View Full Code Here

    }

    @SuppressWarnings("deprecation")
    @Test
    public void testSPTypeWithConfig() throws Exception {
        SPPostMetadataConfigurationProvider provider = new SPPostMetadataConfigurationProvider();
        InputStream is = Thread.currentThread().getContextClassLoader()
                .getResourceAsStream("saml2/logout/sp/sales/WEB-INF/picketlink-idfed.xml");
        assertNotNull(is);
        provider.setConfigFile(is);

        SPType sp = provider.getSPConfiguration();
        assertNotNull(sp);
        assertEquals("https://sp.testshib.org/Shibboleth.sso/SAML2/POST", sp.getServiceURL());
    }
View Full Code Here

TOP

Related Classes of org.picketlink.identity.federation.web.config.SPPostMetadataConfigurationProvider

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.