Caching is performed in the WSS4JInInteceptor and the WSS4JOutInterceptor as 
well as in their WS-SP based counterparts.  The loading is performed when the 
interceptor executes and the loaded crypto instances are cached in a concurrent 
data structure.  See AbstractWSS4JInterceptor [1] for caching in the 
WSS4JInInterceptor, WSS4JOutInterceptor, and PolicyBasedWSS4JInInterceptor.  
PolicyBasedWSS4JOutInterceptor performs caching as well, but does so through 
the AbstractBindingBuilder class [2].

Caching is on by default and cannot be disabled.
 
[1] 
https://svn.apache.org/repos/asf/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j
[2] 
https://svn.apache.org/repos/asf/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers


-----Original Message-----
From: Kasun Gajasinghe [mailto:[email protected]] 
Sent: Saturday, July 31, 2010 10:32 AM
To: [email protected]
Subject: Re: Crypto object caching in CXF

i missed to specify the article link. Here it is,
http://www.mail-archive.com/[email protected]/msg04375.html

<http://www.mail-archive.com/[email protected]/msg04375.html>
--KasunBG
<http://www.mail-archive.com/[email protected]/msg04375.html>
On Sat, Jul 31, 2010 at 7:59 PM, Kasun Gajasinghe <[email protected]> wrote:

> Hello,
> Can anyone tell me how CXF caches Crypto objects (signatureCrypto and
> encryptionCrypto) ?
> Does it cache them by default or do we have to manually set attributes to
> cache them?
>
> I found this article regarding crypto caching in rampart in which they have
> to set two attributes in rampartConfig to cache crypto, but I couldn't find
> about CXF caching after googling?
>
> thanks,
> --KasunBG
>
> ~~~*******'''''''''''''*******~~~
> Kasun Gajasinghe
> Blog: http://kasunbg.blogspot.com
> Twitter: http://twitter.com/kasunbg
>

Reply via email to