# groups method for Pricipal class needed

Paul Roberts (proberts@abaton.com)
Mon, 18 Aug 1997 11:12:34 -0500

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Marianne Mueller: "Re: The JDK 1.1.3 - Help needed urgently......."
- Previous message: Miguel Angel Perchin: "JCE outside the U.S.A"
- Next in thread: David Brownell: "Re: groups method for Pricipal class needed"

    Date: Mon, 18 Aug 1997 11:12:34 -0500

    From: proberts@abaton.com (Paul Roberts)

    To: java-security@web2.javasoft.com

    Subject: groups method for Pricipal class needed

One of the security white papers covers the rules for how permissions
are calculated. It essentially is a union of the permissions for the
individual principal and any group to which they belong. The only way I
see to determine if a principal is a member of the group is the isMember
method in the Group class. That does not seem like an efficient way to
determine a principal's group memberships.

Given how the net permissions are calculated, it makes sense to me that
a method to get all the groups of which a principal is a member should
be added to the interface for java.security.Principal.

...or have I missed something?

-Paul

- Next message: Marianne Mueller: "Re: The JDK 1.1.3 - Help needed urgently......."
- Previous message: Miguel Angel Perchin: "JCE outside the U.S.A"
- Next in thread: David Brownell: "Re: groups method for Pricipal class needed"