Package org.apache.rampart.handler.config

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


    /* (non-Javadoc)
     * @see org.apache.axis2.security.InteropTestBase#getOutflowConfigurationWithRefs()
     */
    protected OutflowConfiguration getOutflowConfigurationWithRefs() {
        OutflowConfiguration ofc = new OutflowConfiguration();
       
        ofc.setActionItems("UsernameToken Encrypt");
        ofc.setUser("Chris");
        ofc.setAddUTElements("Nonce Created");
        ofc.setEncryptionParts("{Element}{" + WSSE_NS + "}UsernameToken");
        ofc.setEncryptionUser("bob");
        ofc.setPasswordCallbackClass("org.apache.axis2.security.PWCallback");
        ofc.setEncryptionSymAlgorithm(WSConstants.TRIPLE_DES);
        ofc.setPasswordType(WSConstants.PW_TEXT);
        ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
       
        ofc.setEncryptionPropRefId("key1");
       
        return ofc;
    }
View Full Code Here


public class AddressingMTOMSecurityTest extends InteropTestBase {

    protected OutflowConfiguration getOutflowConfiguration() {

        OutflowConfiguration ofc = new OutflowConfiguration();

        ofc.setActionItems("Timestamp Signature Encrypt");
        ofc.setUser("alice");
        ofc.setEncryptionUser("bob");
        ofc.setSignaturePropFile("interop.properties");
        ofc.setPasswordCallbackClass("org.apache.axis2.security.PWCallback");
        ofc.setSignatureKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
        ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
        ofc.setSignatureParts("{Element}{" + ADDR_NS + "}To;" +
                                "{Element}{" + ADDR_NS + "}MessageID;" +
                                "{Element}{" + WSU_NS + "}Timestamp");
        ofc.setOptimizeParts(
                "//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue");

        return ofc;
    }
View Full Code Here

        return true;
    }

    protected OutflowConfiguration getOutflowConfigurationWithRefs() {

        OutflowConfiguration ofc = new OutflowConfiguration();

        ofc.setActionItems("Timestamp Signature Encrypt");
        ofc.setUser("alice");
        ofc.setEncryptionUser("bob");
        ofc.setSignaturePropRefId("key1");
        ofc.setPasswordCallbackClass("org.apache.axis2.security.PWCallback");
        ofc.setSignatureKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
        ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
        ofc.setSignatureParts("{Element}{" + ADDR_NS + "}To;" +
                                "{Element}{" + ADDR_NS + "}MessageID;" +
                                "{Element}{" + WSU_NS + "}Timestamp");
        ofc.setOptimizeParts(
                "//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue");

        return ofc;
    }
View Full Code Here

            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

            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

*/
public class Scenario1Test extends InteropTestBase {

   
  protected OutflowConfiguration getOutflowConfiguration() {
    OutflowConfiguration ofc = new OutflowConfiguration();
    ofc.setActionItems("UsernameToken");
    ofc.setUser("Chris");
    ofc.setPasswordCallbackClass("org.apache.axis2.security.PWCallback");
    ofc.setPasswordType("PasswordText");
    return ofc;
  }
View Full Code Here

        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

*/
public class MTOMOptimizedSecurityTest 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.setPasswordCallbackClass("org.apache.axis2.security.PWCallback");
    ofc.setSignatureKeyIdentifier(WSSHandlerConstants.BST_DIRECT_REFERENCE);
    ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
    ofc.setOptimizeParts("//xenc:EncryptedData/xenc:CipherData/" +
                             "xenc:CipherValue");
   
    return ofc;
  }
View Full Code Here

  protected boolean isUseSOAP12InStaticConfigTest() {
    return true;
  }

    protected OutflowConfiguration getOutflowConfigurationWithRefs() {
        OutflowConfiguration ofc = new OutflowConfiguration();
       
        ofc.setActionItems("Signature Encrypt Timestamp");
        ofc.setUser("alice");
        ofc.setEncryptionUser("bob");
        ofc.setSignaturePropRefId("key1");
        ofc.setPasswordCallbackClass("org.apache.axis2.security.PWCallback");
        ofc.setSignatureKeyIdentifier(WSSHandlerConstants.BST_DIRECT_REFERENCE);
        ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
        ofc.setOptimizeParts("//xenc:EncryptedData/xenc:CipherData/" +
                             "xenc:CipherValue");
       
        return ofc;
    }
View Full Code Here

            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

TOP

Related Classes of org.apache.rampart.handler.config.OutflowConfiguration

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.