1 Reply Latest reply on Oct 30, 2007 4:55 PM by Stefan Guilhen

    Tomcat GenericPrincipal and JBossGenericPrincipal

    Anil Saldanha Master

      http://anonsvn.jboss.org/repos/jbossas/trunk/tomcat/src/main/org/jboss/web/tomcat/security/JBossGenericPrincipal.java

      Our Tomcat layer uses JBossGenericPrincipal to basically tie in some additional semantics like callerprincipal etc to the tomcat caching principal.

      I am wondering if this is really an hindrance to users who want to plug in their own realms and create their versions of the GenericPrincipal.

      If our code does an instanceof checks, then that is fine. But if we are casting principals in to JGP, then that is a definite No-No for customization.

      Thinking out loud.

      Of course they can subclass JGP.