Package org.picketlink.trust.jbossws.handler

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


    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

Related Classes of org.picketlink.trust.jbossws.handler.SAML2Handler

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.