Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-675

XwssSecurityInterceptor in combination with <sws:interceptors>

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0 RC2
    • Fix Version/s: 2.0 GA
    • Component/s: Core
    • Labels:
      None

      Description

      The following config:

      <sws:interceptors>
      <bean id="wsSecurityInterceptor" class="org.springframework.ws.soap.security.xwss.X wsSecurityInterceptor">
      <description>
      This interceptor validates incoming messages according to the policy defined in
      'securityPolicy.xml'.
      The policy defines that all incoming requests must have a UsernameToken with a password digest
      in it.
      The actual authentication is performed by the Spring callback handler.
      </description>
      <property name="secureResponse" value="false"/>
      <property name="policyConfiguration"
      value="/WEB-INF/spring/securityPolicy.xml"/>
      <property name="callbackHandlers">
      <list>
      <bean class="org.springframework.ws.soap.security.xwss.c allback.SpringDigestPasswordValidationCallbackHand ler">
      <property name="userDetailsService" ref="securityService"/>
      <property name="userCache" ref="userCache"/>
      </bean>
      <bean class="com.xifin.security.UserValidationCallbackHa ndler">
      <property name="userCache" ref="userCache"/>
      </bean>
      </list>
      </property>
      </bean>
      
      </sws:interceptors>
      

      results in the following exception:

      2010-12-30 16:35:37,699 DEBUG SoapMessageDispatcher[handleHeaders() line 120] - Handling MustUnderstand header {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security
      2010-12-30 16:35:37,702 WARN SoapMessageDispatcher[createMustUnderstandFault() line 162] - Could not handle mustUnderstand headers: {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security. Returning fault
      2010-12-30 16:35:37,704 DEBUG sent[receive() line 181] - Sent response [SaajSoapMessage http://schemas.xmlsoap.org/soap/envelope/}Fault] for request [SaajSoapM
      

        Attachments

          Activity

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              arjen.poutsma Arjen Poutsma
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 0.45d
                0.45d