Examples of SAML2Handler


Examples of org.jboss.identity.federation.core.saml.v2.interfaces.SAML2Handler

         Class<?> clazz;
         try
         {
            clazz = tcl.loadClass(clazzName);

            SAML2Handler samlhandler = (SAML2Handler) clazz.newInstance();
            List<KeyValueType> options = handler.getOption();

            Map<String, Object> mapOptions = new HashMap<String, Object>();

            for(KeyValueType kvtype : options)
            {
               mapOptions.put(kvtype.getKey(), kvtype.getValue());
            }
            samlhandler.init(mapOptions);

            handlerSet.add(samlhandler);
         }
         catch (ClassNotFoundException e)
         {
View Full Code Here

Examples of org.picketlink.identity.federation.core.saml.v2.interfaces.SAML2Handler

            Class<?> clazz;
            try {
                clazz = SecurityActions.loadClass(HandlerUtil.class, clazzName);
                if (clazz == null)
                    throw new RuntimeException(logger.classNotLoadedError(clazzName));
                SAML2Handler samlhandler = (SAML2Handler) clazz.newInstance();
                List<KeyValueType> options = handler.getOption();

                Map<String, Object> mapOptions = new HashMap<String, Object>();

                for (KeyValueType kvtype : options) {
                    mapOptions.put(kvtype.getKey(), kvtype.getValue());
                }
                SAML2HandlerConfig handlerConfig = new DefaultSAML2HandlerConfig();
                handlerConfig.set(mapOptions);

                samlhandler.initHandlerConfig(handlerConfig);

                handlerSet.add(samlhandler);
            } catch (InstantiationException e) {
                throw logger.configurationError(e);
            } catch (IllegalAccessException e) {
View Full Code Here

Examples of org.picketlink.trust.jbossws.handler.SAML2Handler

    Service service = Service.create(wsdl, qname); //Create endpoint metadata
    TestEndpoint port = service.getPort(portQname, TestEndpoint.class); //Get proxy
    BindingProvider bp = (BindingProvider)port;
    bp.getRequestContext().put(SAML2Constants.SAML2_ASSERTION_PROPERTY, assertion); //insert assertion
    List<Handler> handlers = bp.getBinding().getHandlerChain();
    handlers.add(new SAML2Handler()); //Add Picketlink JAX-WS handler to process assertion
    bp.getBinding().setHandlerChain(handlers);
    return port.hello(name); //invoke endpoint
  }
View Full Code Here

Examples of org.picketlink.trust.jbossws.handler.SAML2Handler

    Service service = Service.create(wsdl, qname);
    TestEndpoint port = service.getPort(TestEndpoint.class);
    BindingProvider bp = (BindingProvider)port;
    bp.getRequestContext().put(SAML2Constants.SAML2_ASSERTION_PROPERTY, assertion);
    List<Handler> handlers = bp.getBinding().getHandlerChain();
    handlers.add(new SAML2Handler());
    bp.getBinding().setHandlerChain(handlers);
    return port.hello(name);
  }
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.