Uploaded image for project: 'WSS4J'
  1. WSS4J
  2. WSS-659

SecurityContextToken validator set by wrong QName

    XMLWordPrintableJSON

Details

    Description

      SecurityContextToken validator is set in apache cxf using properties:
      properties.put(SCT_TOKEN_VALIDATOR, "someValidator");

       

       But it can't be used because SecurityContextTokeinInputHandler looks it up via other QName. wss4j sets it as

      {http://schemas.xmlsoap.org/ws/2005/02/sc}Identifier

      and CXF sets it as

      {http://schemas.xmlsoap.org/ws/2005/02/sc}SecurityContextToken

      .

       

      org.apache.cxf.ws.security.wss4j.WSS4JStaxInInterceptor#setTokenValidators
      
      if (validator != null) { 
         properties.addValidator(WSSConstants.TAG_WSC0502_SCT, validator); 
         properties.addValidator(WSSConstants.TAG_WSC0512_SCT, validator); 
      }
      
      WSS4J Part: SecurityContextTokenInputHandler.java:72 
      SecurityContextTokenValidator securityContextTokenValidator = wssSecurityProperties.getValidator(elementName); 
      if (securityContextTokenValidator == null) {
        securityContextTokenValidator = new SecurityContextTokenValidatorImpl();        
      }
      

       

      I am still not sure where this problem should be fixed - on CXF or on wss4j side?

      Attachments

        Issue Links

          Activity

            People

              coheigea Colm O hEigeartaigh
              CauchyPeano Igor Konoplyanko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m