0 Replies Latest reply on Feb 18, 2004 9:31 AM by nithila

    DatabaseServerLoginModule

    nithila

      Hi

      Actually i am using Login module (DatabaseLoginModule) which extends UsernamePasswordLoginModule. Things are working fine as far as logging in, But i have my own Principal class called 'OurPrinciapal' which i want to use instead of SimplePrincipal, but in my session bean i am getting instance of org.jboss.security.SimplePrincipal.

      In my DatabaseLoginModule, in the method login() i do some thing like

      SecurityAssociation.setPrincipal( new OurPrincipal( getUsername() ) );

      But in EJB when i do
      context.getCallerPrincipal.getName() its returning org.jboss.security.SimplePrincipal, but i want it to be 'OurPrincipal'

      i have been trying this for past two days, Can anyone tell me how to use my 'OurPrincipal'?

      Thanx