Package org.apache.rampart.handler.config

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


*/
public class Scenario3Test 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.setEncryptionSymAlgorithm(WSConstants.TRIPLE_DES);
    ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
    ofc.setSignatureKeyIdentifier(WSSHandlerConstants.BST_DIRECT_REFERENCE);
    ofc.setEnableSignatureConfirmation(false);
   
    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.setPasswordCallbackClass("org.apache.axis2.security.PWCallback");
        ofc.setEncryptionSymAlgorithm(WSConstants.TRIPLE_DES);
        ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
        ofc.setSignatureKeyIdentifier(WSSHandlerConstants.BST_DIRECT_REFERENCE);
        ofc.setEnableSignatureConfirmation(false);
       
        ofc.setSignaturePropRefId("key1");
       
        return ofc;
    }
View Full Code Here

*/
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

  protected boolean isUseSOAP12InStaticConfigTest() {
    return true;
  }

    protected OutflowConfiguration getOutflowConfigurationWithRefs() {
        OutflowConfiguration ofc = new OutflowConfiguration();
       
        ofc.setActionItems("Signature Encrypt Timestamp");
        ofc.setUser("alice");
        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");

        ofc.setSignaturePropRefId("key1");
       
        return ofc;
    }
View Full Code Here

*/
public class Scenario5Test extends InteropTestBase {


  protected OutflowConfiguration getOutflowConfiguration() {
    OutflowConfiguration ofc = new OutflowConfiguration(2);
   
    ofc.setActionItems("Signature NoSerialization");
    ofc.setUser("alice");
    ofc.setSignaturePropFile("interop.properties");
    ofc.setPasswordCallbackClass("org.apache.axis2.security.PWCallback");
    ofc.setSignatureKeyIdentifier(WSSHandlerConstants.BST_DIRECT_REFERENCE);
    ofc.setSignatureParts("{}{http://xmlsoap.org/Ping}ticket");
   
    ofc.nextAction();
   
    ofc.setActionItems("Signature Timestamp");
    ofc.setUser("alice");
    ofc.setSignaturePropFile("interop.properties");
    ofc.setPasswordCallbackClass("org.apache.axis2.security.PWCallback");
   
    return ofc;
  }
View Full Code Here

  protected boolean isUseSOAP12InStaticConfigTest() {
    return true;
  }

    protected OutflowConfiguration getOutflowConfigurationWithRefs() {
        OutflowConfiguration ofc = new OutflowConfiguration(2);
       
        ofc.setActionItems("Signature NoSerialization");
        ofc.setUser("alice");
        ofc.setSignaturePropRefId("key1");
        ofc.setPasswordCallbackClass("org.apache.axis2.security.PWCallback");
        ofc.setSignatureKeyIdentifier(WSSHandlerConstants.BST_DIRECT_REFERENCE);
        ofc.setSignatureParts("{}{http://xmlsoap.org/Ping}ticket");
       
        ofc.nextAction();
       
        ofc.setActionItems("Signature Timestamp");
        ofc.setUser("alice");
        ofc.setSignaturePropRefId("key2");
        ofc.setPasswordCallbackClass("org.apache.axis2.security.PWCallback");
       
        return ofc;
    }
View Full Code Here

*/
public class Scenario2aTest extends InteropTestBase {


  protected OutflowConfiguration getOutflowConfiguration() {
    OutflowConfiguration ofc = new OutflowConfiguration();
   
    ofc.setActionItems("UsernameTokenSignature Encrypt Timestamp");
    ofc.setUser("Chris");
    ofc.setEncryptionParts("{Element}{" + WSSE_NS + "}UsernameToken");
    ofc.setEncryptionUser("bob");
    ofc.setEncryptionPropFile("interop.properties");
    ofc.setPasswordCallbackClass("org.apache.axis2.security.PWCallback");
    ofc.setEncryptionSymAlgorithm(WSConstants.TRIPLE_DES);
    ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
   
    return ofc;
  }
View Full Code Here

  protected boolean isUseSOAP12InStaticConfigTest() {
    return true;
  }

    protected OutflowConfiguration getOutflowConfigurationWithRefs() {
        OutflowConfiguration ofc = new OutflowConfiguration();
       
        ofc.setActionItems("UsernameTokenSignature Encrypt Timestamp");
        ofc.setUser("Chris");
        ofc.setEncryptionParts("{Element}{" + WSSE_NS + "}UsernameToken");
        ofc.setEncryptionUser("bob");
        ofc.setPasswordCallbackClass("org.apache.axis2.security.PWCallback");
        ofc.setEncryptionSymAlgorithm(WSConstants.TRIPLE_DES);
        ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
       
        ofc.setEncryptionPropRefId("key1");
       
        return ofc;
    }
View Full Code Here

* WS-Security inteorp scenario 2
*/
public class Scenario2Test extends InteropTestBase {
   
  protected OutflowConfiguration getOutflowConfiguration() {
    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.setEncryptionPropFile("interop.properties");
    ofc.setPasswordCallbackClass("org.apache.axis2.security.PWCallback");
    ofc.setEncryptionSymAlgorithm(WSConstants.TRIPLE_DES);
    ofc.setPasswordType(WSConstants.PW_TEXT);
    ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.SKI_KEY_IDENTIFIER);
   
    return ofc;
  }
View Full Code Here

    public RahasSAML2TokenCertForHoKTest(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

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.