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

OSGi bundle should NOT specify the universal DynamicImport-Package: *

    XMLWordPrintableJSON

Details

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

    Description

      WSS4J is about security and so should the OSGi bundle at the class loading level.

      In version 1.5.10 you are using this Manifest header:

      DynamicImport-Package: *

      which resolves all class loading issues but effectively disables the benefit of OSGi in terms of class visibility.

      So please put some effort in here to get only those packages listed that may eventually being accessed at runtime.

      A simple search yields only these classes for dynamic loading:

      org.bouncycastle.jce.provider.BouncyCastleProvider
      org.apache.security.juice.provider.JuiCEProviderOpenSSL

      ...so the header could be:

      DynamicImport-Package: org.bouncycastle.jce.provider,org.apache.security.juice.provider

      I also see that configuration properties like "org.apache.ws.security.saml.issuerClass" in the SAMLIssuerFactory class may introduce problems herewith but after all there are 2 solutions:

      1.) the implementor rebuilds the WSS4J bundle and adds an appropriate dynamic import
      2.) the implementor packages the implementation class inside a fragment bundle attaching to the WSS4J host bundle

      Option 2 is much more elegant, keeps package/class visibility at a minimum and also does not require to customize the WSS4J OSGi bundle.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: