Examples of IDPMetadataConfigurationProvider


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

        if (providerType instanceof IDPConfiguration) {
            IDPConfiguration configuration = (IDPConfiguration) providerType;

            if (configuration.isSupportMetadata()) {
                try {
                    IDPType metadataConfig = new IDPMetadataConfigurationProvider().getIDPConfiguration();

                    metadataConfig.importFrom(configuration);

                    providerType = metadataConfig;
                } catch (ProcessingException e) {
View Full Code Here

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

* @since Feb 15, 2012
*/
public class IDPMetadataConfigurationProviderUnitTestCase {
    @Test
    public void testIDPType() throws ProcessingException {
        IDPMetadataConfigurationProvider provider = new IDPMetadataConfigurationProvider();
        IDPType idp = provider.getIDPConfiguration();
        assertNotNull(idp);
        assertEquals("https://idp.testshib.org/idp/profile/SAML2/POST/SSO", idp.getIdentityURL());
    }
View Full Code Here

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

    }

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

        IDPType idp = provider.getIDPConfiguration();
        assertNotNull(idp);
        assertEquals("https://idp.testshib.org/idp/profile/SAML2/POST/SSO", idp.getIdentityURL());

        TrustType trust = idp.getTrust();
        assertNotNull(trust);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.