I am using wss4j and axis to implement username security token profile in my project. My problem is how I can set up the parameters such as user and passwordCallbackFef for WSDoAllSender handler in server side. I know how to do the things when a client calls the service, but can not find any way to do with server side.  Is EngineConfiguration working for this case? How let Axis engine know the EngineConfiguration instance?

 

An example of my question is :

 

In the server-config.wsdd there is responseFlow

 

<responseFlow>

 

   <handler name=3D"DoSecuritySender"

type=3D"java:org.apache.ws.axis.security.WSDoAllSender" >

 

 

 

    <parameter name=3D"user"

value=3D"16c73ab6-b892-458f-abf5-2f875f74882e"/>

 

    <parameter name=3D"passwordCallbackClass"

value=3D"au.edu.mq.melcoe.mams.asm.service.security.PWCallback"/>

 

      <parameter name=3D"action" value=3D"Encrypt Signature"/>

 

    <parameter name=3D"signaturePropFile" value=3D"crypto.properties" />

 

    <parameter name=3D"signatureKeyIdentifier" value=3D"DirectReference" = />

 

    <parameter name=3D"encryptionKeyIdentifier" = value=3D"X509KeyIdentifier"

/>

 

   </handler>

 

</responseFlow>

 

 

What I need is to remove parameter user and so on from the file and to set them dynamically in my application.

 

Any advises would be appreciated.

 

Reply via email to