Examples of OutflowConfiguration


Examples of org.apache.rampart.handler.config.OutflowConfiguration

            options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
            options.setAction(this.getRequestAction());
//            options.setProperty(AddressingConstants.WS_ADDRESSING_VERSION, this.getWSANamespace());

            options.setTimeOutInMilliSeconds(200 * 1000);
            OutflowConfiguration clientOutflowConfiguration = getClientOutflowConfiguration();
            if (clientOutflowConfiguration != null) {
                configContext.setProperty(WSSHandlerConstants.OUTFLOW_SECURITY, clientOutflowConfiguration.getProperty());
            }
            InflowConfiguration clientInflowConfiguration = getClientInflowConfiguration();
            if (clientInflowConfiguration != null) {
                configContext.setProperty(WSSHandlerConstants.INFLOW_SECURITY, clientInflowConfiguration.getProperty());
            }
View Full Code Here

Examples of org.apache.rampart.handler.config.OutflowConfiguration

        super(name);
    }


    public OutflowConfiguration getClientOutflowConfiguration() {
        OutflowConfiguration ofc = new OutflowConfiguration();

        ofc.setActionItems("Signature Encrypt Timestamp");
        ofc.setUser("alice");
        ofc.setSignaturePropFile("rahas/rahas-sec.properties");
        ofc.setPasswordCallbackClass(PWCallback.class.getName());
        return ofc;
    }
View Full Code Here

Examples of org.apache.rampart.handler.config.OutflowConfiguration

            throw new RuntimeException(e);
        }
    }

    public OutflowConfiguration getClientOutflowConfiguration() {
        OutflowConfiguration ofc = new OutflowConfiguration();

//        ofc.setActionItems("Timestamp Signature Encrypt");
        ofc.setActionItems("Signature Encrypt Timestamp");
        ofc.setUser("alice");
        ofc.setEncryptionUser("ip");
        ofc.setSignaturePropFile("rahas/rahas-sec.properties");
        ofc.setSignatureKeyIdentifier(WSSHandlerConstants.BST_DIRECT_REFERENCE);
        ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
        ofc.setEncryptionKeyTransportAlgorithm(XMLCipher.RSA_OAEP);
//        ofc.setEncryptionSymAlgorithm(EncryptionConstants.ALGO_ID_BLOCKCIPHER_AES256);
        ofc.setPasswordCallbackClass(PWCallback.class.getName());
        ofc.setEnableSignatureConfirmation(false);
//        ofc.setSignatureParts("{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body;" +
//                                "{Element}{" + RahasConstants.WSA_NS + "}To;" +
//                                "{Element}{" + RahasConstants.WSA_NS + "}ReplyTo;" +
//                                "{Element}{" + RahasConstants.WSA_NS + "}MessageID;" +
//                                "{Element}{" + RahasConstants.WSA_NS + "}Action;" +
View Full Code Here

Examples of org.apache.rampart.handler.config.OutflowConfiguration

            throw new RuntimeException(e);
        }
    }

    public OutflowConfiguration getClientOutflowConfiguration() {
        OutflowConfiguration ofc = new OutflowConfiguration();

        ofc.setActionItems("UsernameToken Timestamp");
        ofc.setUser("joe");
        ofc.setPasswordType(WSConstants.PW_TEXT);
        ofc.setPasswordCallbackClass(PWCallback.class.getName());
        return ofc;
    }
View Full Code Here

Examples of org.apache.rampart.handler.config.OutflowConfiguration

*/
public class Scenario7Test extends InteropTestBase {

 
  protected OutflowConfiguration getOutflowConfiguration() {
    OutflowConfiguration ofc = new OutflowConfiguration();
   
    ofc.setActionItems("Signature Encrypt Timestamp");
    ofc.setUser("alice");
    ofc.setEncryptionUser("bob");
    ofc.setSignaturePropFile("interop.properties");
    ofc.setEncryptionPropFile("interop.properties");
    ofc.setPasswordCallbackClass("org.apache.axis2.security.PWCallback");
    ofc.setEncryptionSymAlgorithm(WSConstants.TRIPLE_DES);
    ofc.setSignatureKeyIdentifier(WSSHandlerConstants.BST_DIRECT_REFERENCE);
    ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
    ofc.setEmbeddedKeyCallbackClass("rg.apache.axis2.security.PWCallback");
    ofc.setSignatureParts("{}{" +
                                SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI +
                                "}Body;STRTransform");
   
    return ofc;
  }
View Full Code Here

Examples of org.apache.rampart.handler.config.OutflowConfiguration

  protected boolean isUseSOAP12InStaticConfigTest() {
    return false;
  }

    protected OutflowConfiguration getOutflowConfigurationWithRefs() {
        OutflowConfiguration ofc = new OutflowConfiguration();
       
        ofc.setActionItems("Signature Encrypt Timestamp");
        ofc.setUser("alice");
        ofc.setEncryptionUser("bob");
        ofc.setSignaturePropRefId("key1");
        ofc.setEncryptionPropRefId("key2");
        ofc.setPasswordCallbackClass("org.apache.axis2.security.PWCallback");
        ofc.setEncryptionSymAlgorithm(WSConstants.TRIPLE_DES);
        ofc.setSignatureKeyIdentifier(WSSHandlerConstants.BST_DIRECT_REFERENCE);
        ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
        ofc.setEmbeddedKeyCallbackClass("rg.apache.axis2.security.PWCallback");
        ofc.setSignatureParts("{}{" +
                                SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI +
                                "}Body;STRTransform");
       
        return ofc;
    }
View Full Code Here

Examples of org.apache.rampart.handler.config.OutflowConfiguration

            throw new RuntimeException(e);
        }
    }

    public OutflowConfiguration getClientOutflowConfiguration() {
        OutflowConfiguration ofc = new OutflowConfiguration();

        ofc.setActionItems("UsernameToken Timestamp");
        ofc.setUser("joe");
        ofc.setPasswordCallbackClass(PWCallback.class.getName());
        return ofc;
    }
View Full Code Here

Examples of org.apache.rampart.handler.config.OutflowConfiguration

    public RahasSAMLTokenCertForHoKTest(String name) {
        super(name);
    }

    public OutflowConfiguration getClientOutflowConfiguration() {
        OutflowConfiguration ofc = new OutflowConfiguration();

        ofc.setActionItems("Signature Encrypt Timestamp");
        ofc.setUser("alice");
        ofc.setEncryptionUser("ip");
        ofc.setSignaturePropFile("rahas/rahas-sec.properties");
        ofc.setPasswordCallbackClass(PWCallback.class.getName());
        return ofc;
    }
View Full Code Here

Examples of org.apache.rampart.handler.config.OutflowConfiguration

                throw new AxisFault(
                        "Inflow configuration must contain an 'action' "
                                + "elements the child of 'InflowSecurity' element");
            }

            OutflowConfiguration outflowConfiguration = new OutflowConfiguration();
           
            Iterator childElements = actionElem.getChildElements();
            while (childElements.hasNext()) {
                OMElement element = (OMElement) childElements.next();
               
                String localName = element.getLocalName();
                String text = element.getText().trim();
                if(localName.equals(WSHandlerConstants.PW_CALLBACK_CLASS)) {
                    outflowConfiguration.setPasswordCallbackClass(text);
                } else if(localName.equals(WSHandlerConstants.SIG_PROP_FILE)) {
                    outflowConfiguration.setSignaturePropFile(text);
                } else if(localName.equals(WSHandlerConstants.ENC_PROP_FILE)) {
                    outflowConfiguration.setEncryptionPropFile(text);
                } else if(localName.equals(WSHandlerConstants.ENC_CALLBACK_CLASS)) {
                    outflowConfiguration.setEmbeddedKeyCallbackClass(text);
                } else if(localName.equals(WSHandlerConstants.USER)) {
                    outflowConfiguration.setUser(text);
                } else if(localName.equals(WSHandlerConstants.ENCRYPTION_USER)) {
                    outflowConfiguration.setEncryptionUser(text);
                }
            }
            return outflowConfiguration;
        }
        return null;
View Full Code Here

Examples of org.apache.rampart.handler.config.OutflowConfiguration

*/
public class Scenario4Test extends InteropTestBase {


  protected OutflowConfiguration getOutflowConfiguration() {
    OutflowConfiguration ofc = new OutflowConfiguration();
   
    ofc.setActionItems("Signature Encrypt Timestamp");
    ofc.setUser("alice");
    ofc.setSignaturePropFile("interop.properties");
    ofc.setPasswordCallbackClass("org.apache.axis2.security.PWCallback");
    ofc.setEncryptionSymAlgorithm(WSConstants.TRIPLE_DES);
    ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.EMBEDDED_KEYNAME);
    ofc.setEmbeddedKeyName("SessionKey");
    ofc.setSignatureKeyIdentifier(WSSHandlerConstants.BST_DIRECT_REFERENCE);
    ofc.setEmbeddedKeyCallbackClass("org.apache.axis2.security.PWCallback");

    return ofc;
  }
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.