You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by Angel Cholchev <a....@bg.seeburger.com> on 2006/09/18 09:02:50 UTC

[Rampart]Runtime Crypto?

   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: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


Re: [Rampart]Runtime Crypto?

Posted by Ruchith Fernando <ru...@gmail.com>.
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 <a....@bg.seeburger.com> 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: wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: wss4j-dev-help@ws.apache.org
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


Re: [Rampart]Runtime Crypto?

Posted by Ruchith Fernando <ru...@gmail.com>.
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 <a....@bg.seeburger.com> 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: wss4j-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: wss4j-dev-help@ws.apache.org
>
>


-- 
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org