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

Avoid converting the SOAP Body to DOM on the processing side if possible

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.10
    • 1.6
    • None
    • None

    Description

      On an inbound request, WSS4J currently iterates through each security token in the security header and processes each one. However it also requires the entire SOAP request be converted into a DOM structure, even though it might not be necessary to access the SOAP body as part of processing the security header, e.g. processing a Timestamp, or a Username Token.

      This task is to enhance WSS4J on the processing side, so that it does not require access to the SOAP body. If it needs to find an element in the SOAP request, it should use a callback mechanism, to obtain e.g. the SOAP body if required. This mechanism could potentially provide support for signed MTOM. WSS4J should supply a default implementation that more or less parallels the current implementation. CXF/Rampart etc. could define their own callback implementations for their specific needs.

      The callback class could look something like:

      public abstract class LookupCallbacks {
      //for the wsu:ID, get the element
      Element getElementForID(Object msgContext, String i) {
      return null;
      }

      //for processing of MTOM things eventually
      InputStream getAttachment(Object msgContext, String contentId) {
      return null;
      }
      }

      Attachments

        Issue Links

          Activity

            People

              coheigea Colm O hEigeartaigh
              coheigea Colm O hEigeartaigh
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: