[jboss-user] [Security & JAAS/JBoss] - Re: Regarding the SubjectFactory and SecurityDomainJndiName

kesi.wei do-not-reply at jboss.com
Mon Apr 13 02:14:07 EDT 2009


I modify the getSubject method, We think that it should have default value.

 private Subject getSubject()
  |    {
  | 	   subjectFactory = new JBossSecuritySubjectFactory();
  |        ((JBossSecuritySubjectFactory) subjectFactory).setSecurityManagement(new JNDIBasedSecurityManagement());       
  | 	   Subject subject = null;
  |       if(subjectFactory != null && securityDomainJndiName != null)
  |       {
  |          subject = subjectFactory.createSubject(securityDomainJndiName);
  |       } 
  |       if (trace)
  |          log.trace("subject: " + subject);
  |       return subject;
  |    }

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225057#4225057

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225057



More information about the jboss-user mailing list