Hi,

We can dynamically set the crypto impl but we will have to use an
indirect mechanism.

We can specify all the properties one provides in the .properties file
in a java.util.Properties object and set it in the Options object in
the message context with a certain key.

Now we have to set the above key value that we used, as the value of
"SignaturePropRefId" element in the Rampart configuration.
"SignaturePropRefId" element replaces the "signaturePropfile" element.
Same goes for encryption and decryption properties.

This mechanism is used here[1] in the invokeWithGivenConfigWithProRefs() method.

HTH

Thanks,
Ruchith

[1] 
https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/security/interop/org/apache/axis2/security/InteropScenarioClient.java
On 9/18/06, Angel Cholchev <[EMAIL PROTECTED]> wrote:
   Hello,
Is it possible to create a runtime instance of the crypto, defined in
the sec.properties file.
For me it is inconvenient* *to load the crypto instance and properties
from a file. Is is possible to create my crypto by every single call
without getting is constuctor parameters from a file,
because every time I use different aliases.
   Thanks

Angel Cholchev
--

*SEEBURGER AG*
Grigorij Gorbatenko 6, BG-1784 Sofia
GSM: +359(0)889355697


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to