Package org.apache.cxf.ws.security.wss4j

Examples of org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor


        outProps.put("signatureParts",
                     "{}{http://schemas.xmlsoap.org/soap/envelope/}Body;"
                     + "{}{http://docs.oasis-open.org/wss/2004/01/oasis-"
                     + "200401-wss-wssecurity-utility-1.0.xsd}Timestamp;");
       
        bus.getOutInterceptors().add(new WSS4JOutInterceptor(outProps));
       
        port.doubleIt(25);
       
        ((java.io.Closeable)port).close();
        bus.shutdown(true);
View Full Code Here


        outProps.put("passwordCallbackClass",
                     "org.apache.cxf.systest.ws.wssec10.client.KeystorePasswordCallback");
        outProps.put("signatureParts",
                     "{}{http://schemas.xmlsoap.org/soap/envelope/}Body;");
       
        bus.getOutInterceptors().add(new WSS4JOutInterceptor(outProps));
       
        try {
            port.doubleIt(25);
            fail("Failure expected on not signing the Timestamp");
        } catch (Exception ex) {
View Full Code Here

                     "org.apache.cxf.systest.ws.wssec10.client.KeystorePasswordCallback");
        outProps.put("signatureParts",
                     "{}{http://docs.oasis-open.org/wss/2004/01/oasis-"
                     + "200401-wss-wssecurity-utility-1.0.xsd}Timestamp;");
       
        bus.getOutInterceptors().add(new WSS4JOutInterceptor(outProps));
       
        try {
            port.doubleIt(25);
            fail("Failure expected on not signing the Timestamp");
        } catch (Exception ex) {
View Full Code Here

        outProps.put("signatureParts",
                     "{}{http://www.w3.org/2003/05/soap-envelope}Body;"
                     + "{}{http://docs.oasis-open.org/wss/2004/01/oasis-"
                     + "200401-wss-wssecurity-utility-1.0.xsd}Timestamp;");
       
        bus.getOutInterceptors().add(new WSS4JOutInterceptor(outProps));
       
        port.doubleIt(25);
       
        ((java.io.Closeable)port).close();
        bus.shutdown(true);
View Full Code Here

        outProps.put("passwordCallbackClass",
                     "org.apache.cxf.systest.ws.wssec10.client.KeystorePasswordCallback");
        outProps.put("signatureParts",
                     "{}{http://www.w3.org/2003/05/soap-envelope}Body;");
       
        bus.getOutInterceptors().add(new WSS4JOutInterceptor(outProps));
       
        try {
            port.doubleIt(25);
            fail("Failure expected on not signing the Timestamp");
        } catch (Exception ex) {
View Full Code Here

                     "org.apache.cxf.systest.ws.wssec10.client.KeystorePasswordCallback");
        outProps.put("signatureParts",
                     "{}{http://docs.oasis-open.org/wss/2004/01/oasis-"
                     + "200401-wss-wssecurity-utility-1.0.xsd}Timestamp;");
       
        bus.getOutInterceptors().add(new WSS4JOutInterceptor(outProps));
       
        try {
            port.doubleIt(25);
            fail("Failure expected on not signing the Timestamp");
        } catch (Exception ex) {
View Full Code Here

        outProps.put("signatureParts",
                     "{}{http://schemas.xmlsoap.org/soap/envelope/}Body;");
        outProps.put("encryptionParts",
                     "{}{http://schemas.xmlsoap.org/soap/envelope/}Body;");
       
        bus.getOutInterceptors().add(new WSS4JOutInterceptor(outProps));
       
        port.doubleIt(25);
       
        ((java.io.Closeable)port).close();
        bus.shutdown(true);
View Full Code Here

                     "{}{http://schemas.xmlsoap.org/soap/envelope/}Body;");
        outProps.put("encryptionParts",
                     "{}{http://docs.oasis-open.org/wss/2004/01/oasis-"
                     + "200401-wss-wssecurity-utility-1.0.xsd}Timestamp;");
       
        bus.getOutInterceptors().add(new WSS4JOutInterceptor(outProps));
       
        try {
            port.doubleIt(25);
            fail("Failure expected on not encrypting the SOAP Body");
        } catch (Exception ex) {
View Full Code Here

        outProps.put("signatureParts",
                     "{}{http://schemas.xmlsoap.org/soap/envelope/}Body;"
                     + "{}{http://docs.oasis-open.org/wss/2004/01/oasis-"
                     + "200401-wss-wssecurity-utility-1.0.xsd}Timestamp;");
       
        WSS4JOutInterceptor wss4jOutInterceptor = new WSS4JOutInterceptor(outProps);
        bus.getOutInterceptors().add(wss4jOutInterceptor);
       
        try {
            port.doubleIt(25);
            fail("Failure expected on not signing the WS-Addressing headers");
        } catch (Exception ex) {
            // expected
        }
       
        // Now sign the WS-Addressing headers
        bus.getOutInterceptors().remove(wss4jOutInterceptor);
       
        outProps.put("signatureParts",
                "{}{http://schemas.xmlsoap.org/soap/envelope/}Body;"
                + "{}{http://docs.oasis-open.org/wss/2004/01/oasis-"
                + "200401-wss-wssecurity-utility-1.0.xsd}Timestamp;"
                + "{}{http://www.w3.org/2005/08/addressing}ReplyTo;");
       
        wss4jOutInterceptor = new WSS4JOutInterceptor(outProps);
        bus.getOutInterceptors().add(wss4jOutInterceptor);
       
        port.doubleIt(25);
       
        ((java.io.Closeable)port).close();
View Full Code Here

            outProps.put("signatureKeyIdentifier", "DirectReference");
            outProps.put("signatureParts",
                         "{Element}{" + WSU_NS + "}Timestamp;"
                         + "{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body");

            bus.getOutInterceptors().add(new WSS4JOutInterceptor(outProps));

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

            inProps.put("action", "UsernameToken Timestamp Signature Encrypt");
            inProps.put("passwordType", "PasswordText");
View Full Code Here

TOP

Related Classes of org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor

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.