Uploaded image for project: 'PicketBox '
  1. PicketBox
  2. SECURITY-696

MessageFactory: Fallback to load classes from current class classloader if tccl failed

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Minor
    • Negotiation_2_2_2
    • Negotiation_2_2_1
    • Negotiation
    • None

    Description

      Currently method MessageFactory.loadClass(String classname) has possibility to load classes only from Thread context classloader (Thread.currentThread().getContextClassLoader()).

      It could be nice if there is possibility to load classes from different classloader if TCCL failed. The best would be likely classloader of current class MessageFactory (MessageFactory.class.getClassLoader()) because libraries jboss-negotiation-common and jboss-negotiation-spnego are almost always loaded by same classloader (In JBoss AS7, they are part of same module).

      This enhancement could be helpful for example in GateIn portal integration, as we have custom NegotiationAuthenticator in different module and so we don't need to explicitly mention additional module "org.jboss.security.negotiation" in dependencies of gatein.ear/META-INF/MANIFEST.MF

      Attachments

        Activity

          People

            mposolda@redhat.com Marek Posolda
            mposolda@redhat.com Marek Posolda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: