Hi David,
        IFAIK, you can set the rampart configuration by setting Axis2 inflow
and
outflow configuration parameters programmatically.

Eg.

        ServiceClient client = new ServiceClient(ctx, null);

        Options options = new Options();
        OutflowConfiguration ofc = new OutflowConfiguration();
        ofc.setActionItems("Timestamp Signature Encrypt");
        ofc.setUser("client");
        ofc.setPasswordCallbackClass("
org.apache.rampart.samples.sample11.PWCBHandler");
        ofc.setSignaturePropFile("client.properties");
        ofc.setSignatureKeyIdentifier(
WSSHandlerConstants.BST_DIRECT_REFERENCE);
        ofc.setEncryptionKeyIdentifier(WSSHandlerConstants.ISSUER_SERIAL);
        ofc.setEncryptionUser("service");

        //Set the rampart parameters
        options.setProperty(WSSHandlerConstants.OUTFLOW_SECURITY,
ofc.getProperty();

        client.setOptions(options);

        //Engage rampart
        client.engageModule("rampart");

      This was taken from the example 11 of rampart-samples module under
basic and it shows
how to set rampart configuration programmatically. You may also find this
presentation
 http://wso2.org/files/rampart-tute.pdf very useful.

Regards,
Nandana



On 9/13/07, David Robertson <[EMAIL PROTECTED]> wrote:
>
> Is there a mechanism to programmatically set (overriding an axis2.xml
> file) which user signs a message.
>
> Thanks,
>
> -David Robertson
>
>
>

Reply via email to