Examples of IDPType


Examples of org.picketlink.identity.federation.core.config.IDPType

        SAML2HandlerChainConfig chainConfig = new DefaultSAML2HandlerChainConfig();
        SAML2HandlerConfig handlerConfig = new DefaultSAML2HandlerConfig();

        Map<String, Object> chainOptions = new HashMap<String, Object>();
        IDPType idpType = new IDPType();
        idpType.setAttributeManager(TestAttributeManager.class.getName());
        chainOptions.put(GeneralConstants.CONFIGURATION, idpType);
        chainConfig.set(chainOptions);
       
        // Initialize the handler
        handler.initChainConfig(chainConfig);
View Full Code Here

Examples of org.picketlink.identity.federation.core.config.IDPType

        HTTPContext httpContext = new HTTPContext(servletRequest, servletResponse, servletContext);

        // Create chainConfig for IDP
        TrustType trustType = new TrustType();
        Map<String, Object> chainOptionsIdp = new HashMap<String, Object>();
        IDPType idpType = new IDPType();
        idpType.setTrust(trustType);
        chainOptionsIdp.put(GeneralConstants.CONFIGURATION, idpType);
        SAML2HandlerChainConfig chainConfigIdp = new DefaultSAML2HandlerChainConfig(chainOptionsIdp);
        issuerTrustHandler.initChainConfig(chainConfigIdp);

        // Create documentHolder
View Full Code Here

Examples of org.picketlink.identity.federation.core.config.IDPType

        idpHandlerRequest.addOption(GeneralConstants.ASSERTIONS_VALIDITY, 10000l);
        SAML2HandlerResponse idpHandlerResponse = new DefaultSAML2HandlerResponse();

        // Create chainConfig for IDP
        Map<String, Object> chainOptionsIdp = new HashMap<String, Object>();
        IDPType idpType = new IDPType();
        chainOptionsIdp.put(GeneralConstants.CONFIGURATION, idpType);
        chainOptionsIdp.put(GeneralConstants.ROLE_VALIDATOR_IGNORE, "true");
        SAML2HandlerChainConfig chainConfigIdp = new DefaultSAML2HandlerChainConfig(chainOptionsIdp);

        // Create and init handlers for IDP
View Full Code Here

Examples of org.picketlink.identity.federation.core.config.IDPType

        SAMLParser parser = new SAMLParser();
        AuthnRequestType authnRequest = (AuthnRequestType) parser.parse(DocumentUtil.getNodeAsStream(samlReq));
        NameIDPolicyType nameIDPolicy = authnRequest.getNameIDPolicy();
        assertEquals(JBossSAMLURIConstants.NAMEID_FORMAT_PERSISTENT.get(), nameIDPolicy.getFormat().toString());

        ProviderType idpType = new IDPType();
        chainOptions = new HashMap<String, Object>();
        chainOptions.put(GeneralConstants.CONFIGURATION, idpType);
        chainConfig.set(chainOptions);

        // Initialize the handler
View Full Code Here

Examples of org.picketlink.identity.federation.core.config.IDPType

    private boolean supportsRequest(SAML2HandlerRequest request) {
        return getType() == HANDLER_TYPE.IDP && (request.getSAML2Object() instanceof AuthnRequestType);
    }

    private IDPType getConfiguration() {
        IDPType configuration = (IDPType) handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION);

        if (configuration == null) {
            throw logger.nullArgumentError("IDP Configuration");
        }
View Full Code Here

Examples of org.picketlink.identity.federation.core.config.IDPType

*/
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.core.config.IDPType

        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);
        assertEquals("localhost,jboss.com,jboss.org", trust.getDomains());

        assertEquals("org.picketlink.identity.federation.core.impl.EmptyAttributeManager", idp.getAttributeManager());
    }
View Full Code Here

Examples of org.picketlink.identity.federation.core.config.IDPType

        List<SAML2Handler> handlers = new ArrayList<SAML2Handler>();

        handlers.add(createAuthenticationHandler());
        handlers.add(createEncryptionHandler());

        IDPType idpType = new IDPType();

        idpType.setEncrypt(true);

        return getHandlerChain(idpType, handlers);
    }
View Full Code Here

Examples of org.picketlink.identity.federation.core.config.IDPType

       
        Object config = this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION);
       
        // if the GeneralConstants.ATTIBUTE_MANAGER parameter is defined for this handler, ignore the PicketLinkIDP AttributeManager attribute.
        if (config instanceof IDPType && getAttributeManager() == null) {
            IDPType idpType = (IDPType) config;
            String attribStr = idpType.getAttributeManager();
            insantiateAttributeManager(attribStr);
        }
    }
View Full Code Here

Examples of org.picketlink.identity.federation.core.config.IDPType

    @Override
    public void initChainConfig(SAML2HandlerChainConfig handlerChainConfig) throws ConfigurationException {
        super.initChainConfig(handlerChainConfig);
        Object config = this.handlerChainConfig.getParameter(GeneralConstants.CONFIGURATION);
        if (config instanceof IDPType) {
            IDPType idpType = (IDPType) config;
            String roleGeneratorString = idpType.getRoleGenerator();
            this.insantiateRoleValidator(roleGeneratorString);
        }
    }
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.