cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Diephouse (JIRA)" <j...@apache.org>
Subject [jira] Closed: (CXF-801) WSS4JInInterceptor doesn't allow setting of non-string properties such as "passwordCallbackRef"
Date Sun, 22 Jul 2007 17:53:06 GMT

     [ https://issues.apache.org/jira/browse/CXF-801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dan Diephouse closed CXF-801.
-----------------------------

    Resolution: Duplicate

Hi, this is actually a duplicate of CXF-819 (well technically this one came first, but I didn't
see this one until later). I've fixed this problem in SVN and we should have a new snapshot
out sometime tomorrow with the fix. Thanks.

> WSS4JInInterceptor doesn't allow setting of non-string properties such as "passwordCallbackRef"
> -----------------------------------------------------------------------------------------------
>
>                 Key: CXF-801
>                 URL: https://issues.apache.org/jira/browse/CXF-801
>             Project: CXF
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.1
>         Environment: Spring 2.0.3
>            Reporter: Michael Lake
>            Priority: Critical
>
> I use spring to inject DAOs into my PasswordHandler, I would then like to be able to
use "passwordCallbackRef" otherwise known as org.apache.ws.security.handler.WSHandlerConstants.PW_CALLBACK_REF
> to pass an already-injected instance of my bean to cxf/apache ws. this was possible in
xfire. (i'm migrating from xfire to CXF)
> I notice in the source code (even on 2.1-SNAPSHOT), that WSS4JInInterceptor's single
argument constructor only takes a strings as values:
> public WSS4JInInterceptor(Map<String, String> properties)
> whereas the documentation on the website shows an example which is different:
> (look under "Adding the interceptors via the API") 
> http://cwiki.apache.org/CXF20DOC/ws-security.html
> it has a code snippet like this:
> Map<String,Object> inProps= new HashMap<String,Object>();
> WSS4JInInterceptor wssIn = new WSS4JInInterceptor(inProps);
> cxfEndpoint.getInInterceptors().add(wssIn);
> cxfEndpoint.getInInterceptors().add(new SAAJInInterceptor());

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message