users@glassfish.java.net

How are Principals, Groups and Roles related?

From: <glassfish_at_javadesktop.org>
Date: Mon, 02 Mar 2009 20:00:16 PST

Hi,

- web.xml defines a list of roles.
- sun-web.xml defines a list of principals associated with each role and a list of groups associated with each role.

What is the relationship between a Principal and a Group? Between a Principal and a Role? Between a Group and a Role? JAX-RS has a class called SecurityContext that returns the current Principal but it's not clear how to navigate from there to its Group or Role.

Any ideas?

Thank you,
Gili
[Message sent by forum member 'cowwoc' (cowwoc)]

http://forums.java.net/jive/thread.jspa?messageID=334704