Examples of doubleIt()


Examples of org.example.contract.doubleit.DoubleItPortType.doubleIt()

        updateAddressPort(saml1Port, PORT2);
       
        ((BindingProvider)saml1Port).getRequestContext().put(
            "ws-security.saml-callback-handler", new SamlCallbackHandler(false)
        );
        int result = saml1Port.doubleIt(25);
        assertTrue(result == 50);
       
        ((java.io.Closeable)saml1Port).close();
        bus.shutdown(true);
    }
View Full Code Here

Examples of org.example.contract.doubleit.DoubleItPortType.doubleIt()

        SamlCallbackHandler callbackHandler = new SamlCallbackHandler();
        callbackHandler.setConfirmationMethod(SAML2Constants.CONF_HOLDER_KEY);
        ((BindingProvider)saml2Port).getRequestContext().put(
            "ws-security.saml-callback-handler", callbackHandler
        );
        int result = saml2Port.doubleIt(25);
        assertTrue(result == 50);
       
        ((java.io.Closeable)saml2Port).close();
        bus.shutdown(true);
    }
View Full Code Here

Examples of org.example.contract.doubleit.DoubleItPortType.doubleIt()

        updateAddressPort(saml2Port, PORT);
       
        ((BindingProvider)saml2Port).getRequestContext().put(
            "ws-security.saml-callback-handler", new SamlCallbackHandler()
        );
        int result = saml2Port.doubleIt(25);
        assertTrue(result == 50);
       
        ((java.io.Closeable)saml2Port).close();
        bus.shutdown(true);
    }
View Full Code Here

Examples of org.example.contract.doubleit.DoubleItPortType.doubleIt()

        callbackHandler.setConfirmationMethod(SAML2Constants.CONF_HOLDER_KEY);
        ((BindingProvider)saml2Port).getRequestContext().put(
            "ws-security.saml-callback-handler", callbackHandler
        );

        int result = saml2Port.doubleIt(25);
        assertTrue(result == 50);
       
        ((java.io.Closeable)saml2Port).close();
        bus.shutdown(true);
    }
View Full Code Here

Examples of org.example.contract.doubleit.DoubleItPortType2.doubleIt()

        Header dummyHeader = new Header(new QName("uri:org.apache.cxf", "dummy"), "dummy-header",
                                        new JAXBDataBinding(String.class));
        headers.add(dummyHeader);
        ((BindingProvider)x509Port).getRequestContext().put(Header.HEADER_LIST, headers);
       
        int response = x509Port.doubleIt(25);
        assertEquals(50, response);
       
        int response2 = x509Port.doubleIt2(15);
        assertEquals(30, response2);
       
View Full Code Here

Examples of org.example.contract.doubleit.DoubleItPortTypeHeader.doubleIt()

        ((BindingProvider)pt).getRequestContext().put(SecurityConstants.ENCRYPT_PROPERTIES,
                                                      getClass().getResource("alice.properties"));
       
        DoubleIt di = new DoubleIt();
        di.setNumberToDouble(5);
        assertEquals(10, pt.doubleIt(di, 1).getDoubledNumber());
    }
   
    @Test
    public void testCXF4119() throws Exception {
        SpringBusFactory bf = new SpringBusFactory();
View Full Code Here

Examples of wssec.kerberos.DoubleItPortType.doubleIt()

        DoubleItService service = new DoubleItService();
       
        DoubleItPortType kerberosPort = service.getDoubleItKerberosTransportPort();
        updateAddressPort(kerberosPort, PORT2);
        BigInteger result = kerberosPort.doubleIt(BigInteger.valueOf(25));
        assertTrue(result.equals(BigInteger.valueOf(50)));
    }
   
    @org.junit.Test
    @org.junit.Ignore
View Full Code Here

Examples of wssec.saml.DoubleItPortType.doubleIt()

       
        DoubleItPortType saml1Port = service.getDoubleItSaml1TransportPort();
        updateAddressPort(saml1Port, PORT2);
       
        try {
            saml1Port.doubleIt(BigInteger.valueOf(25));
            fail("Expected failure on an invocation with no SAML Assertion");
        } catch (javax.xml.ws.soap.SOAPFaultException ex) {
            assertTrue(ex.getMessage().contains("No SAML CallbackHandler available"));
        }
       
View Full Code Here

Examples of wssec.ut.DoubleItPortType.doubleIt()

        DoubleItService service = new DoubleItService();
       
        DoubleItPortType utPort = service.getDoubleItPlaintextPort();
        updateAddressPort(utPort, PORT);
        utPort.doubleIt(BigInteger.valueOf(25));
    }
   
    @org.junit.Test
    public void testPlaintextCreated() throws Exception {
View Full Code Here

Examples of wssec.x509.DoubleItPortType.doubleIt()

        SpringBusFactory.setThreadDefaultBus(bus);

        DoubleItService service = new DoubleItService();
        DoubleItPortType x509Port = service.getDoubleItKeyIdentifierPort();
        updateAddressPort(x509Port, PORT);
        x509Port.doubleIt(BigInteger.valueOf(25));
    }
   
    @org.junit.Test
    public void testIssuerSerial() throws Exception {
        if (!unrestrictedPoliciesInstalled) {
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.