Hope this helps another poor sole...
this is how i populate my actor object from the identity
public boolean login() {
actor.setId(identity.getUsername());
Iterator principleItr =
identity.getSubject().getPrincipals().iterator();
while(principleItr.hasNext()){
Object principle = principleItr.next();
if (principle instanceof SimpleGroup){
SimpleGroup simpleGroup = (SimpleGroup) principle;
Enumeration simpleGroupMembers = simpleGroup.members();
while(simpleGroupMembers.hasMoreElements()){
SimplePrincipal aPrincipal =
(SimplePrincipal)simpleGroupMembers.nextElement();
actor.getGroupActorIds().add(aPrincipal.getName());
}
}
}
return true;
}
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066994#4066994
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066994
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user