Hello
I solved some trouble.
I set my own principal class in LoginModule configuration. But method getCallerPrincipal return SimplePrincipal. Then i find next solve:
org.jboss.security.SecurityAssociation.getSubject().getPrincipals(MyPrincipal.class)
[Message sent by forum member 'ghost63' (ghost63)]
http://forums.java.net/jive/thread.jspa?messageID=266737