Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-801

WSS4JInInterceptor doesn't allow setting of non-string properties such as "passwordCallbackRef"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 2.1
    • 2.0.1
    • Configuration
    • None
    • Spring 2.0.3

    Description

      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());

      Attachments

        Activity

          People

            Unassigned Unassigned
            mister_lake Michael Lake
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: