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

Support for secured SOAP attachments

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • WSS4J Core
    • None

    Description

      The attached patches should serve as a basis for discussions how
      the support for SwA in WSS4j and the integration in
      a SOAP-Stack should look like.

      Some notes to the patch:

      • Applies to the current trunk of santuario and wss4j.
      • The client side demonstrates the DOM approach whereas the server side uses the StAX implementation.
      • I've implemented the very basic just to have a working proof-of-concept.
      • Attachments are requested via callback from the soap-stack because
      • of decoupling from soap-stack
      • to support full streaming from network to SIB as far as possible
      • CXF dependencies are just a leftover from V1 and because the SecurityInInterceptor is not ported to V2
      • Encryption / Decryption of an attachment is streaming oriented, no buffering is done in WSS4J.
      • Signature creation and verification is at the moment buffered in WSS4j but the signature-verification can, under some conditions, be streamed as well.
      • To prevent patching of CXF for the prototype the WSS4J Interceptors and some dependencies are copied and modified and also included in the patch. The santuatio changes are necessary for the StAX impl.
        For DOM all necessary santuario changes are done via reflection or other hacks for now.

      Feedback is very welcome and also necessary!

      Thanks,

      Marc

      Attachments

        1. AttachmentContentTransform.java
          5 kB
          Nathan Clement
        2. AttachmentDecryptionDataSource.java
          6 kB
          Nathan Clement
        3. AttachmentEncryptionDataSource.java
          3 kB
          Nathan Clement
        4. santuario-swa.diff
          63 kB
          Marc Giger
        5. santuario-swa.diff
          12 kB
          Marc Giger
        6. wss4j-swa.diff
          482 kB
          Marc Giger
        7. wss4j-swa.diff
          212 kB
          Marc Giger

        Activity

          People

            coheigea Colm O hEigeartaigh
            giger Marc Giger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: