[jboss-user] [Security & JAAS/JBoss] - Re: SimplePrincipal ClassCastException
clevelam
do-not-reply at jboss.com
Fri Oct 31 11:52:27 EDT 2008
The extra module option was just experimination. A forum that I went to had principalClassName instead of principalClass.
I was able to figure out my problem using the following URL:
http://www.jboss.org/community/docs/DOC-12517
Group customGroup = new SimpleGroup("CallerPrincipal");
customGroup.addMember(getIdentity()); where get Identity returns the principal that i want to be at request.getUserPrincipal().
The URL read:
"You can also include a custom principal by using code from a login module. A custom principal must be installed under the Subject using a java.security.acl.group named "CallerPrincipal" with the sole group member being the custom "
I oringinally took "also" to mean not required and that I can use just the module-option. But that didnt work.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186075#4186075
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186075
More information about the jboss-user
mailing list