1 Reply Latest reply on Oct 18, 2001 9:01 AM by pitdingo

    request.getCallerPrincipal() bug

    pitdingo

      after I sucessfully login, i do a request.getCallerPrincipal() call and get the authenticated principal.

      This is not the same object type as the principal I created in my LoginModule. Shouldn't it be? If not, why are Principal objects created in the LoginModules?

        • 1. Re: request.getCallerPrincipal() bug
          pitdingo

          a little more detail....

          I created my own Principal class and named it J2EEPrincipal. If i do an instanceof on the returned principal from the httpServletRequest.getUserPrincipal() it is not my J2EEPrincipal type.