0 Replies Latest reply on May 14, 2002 6:40 AM by Ken'ichi Nakata

    How to use my own Principal in JBossSecurityMgrRealm

    Ken'ichi Nakata Newbie

      Hallo,

      I am using JBoss-2.4.5_Tomcat-4.0.3

      I want to get my own java.security.Principal class from javax.servlet.http.HttpServletRequest.getUserPrincipal() method. But org.jboss.web.catalina.security.JBossSecurityMgrRealm.authenticate(String, String) method returns only org.jboss.security.SimplePrincipal instance. Moreover, that SimplePrincipal instance is empty without name property.

      I don't want my own Principal class to be subclass of SimplePrincipal.

      Would you improve JBossSecurityMgrRealm that authenticate(String, String) method returns Principal instance get from javax.security.auth.Subject set in my own javax.security.auth.spi.LoginModule class?

      Regards,
      Ken,
      Kyoto, Japan