SEAMSECURITY-98

Hello
https://issues.jboss.org/browse/SEAMSECURITY-98
I do a pull request again as it is really needed to support jaas authentification.
Thanks
Nicolas Héron