This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Security and the fly likes JAAS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "JAAS" Watch "JAAS" New topic


Prakash Krishnamurthy
Ranch Hand

Joined: Oct 08, 2002
Posts: 154
Does anybody know the relation between a subject and Principal? Can a subject have many principals or is it vice-versa?
Valentin Crettaz
Gold Digger

Joined: Aug 26, 2001
Posts: 7610
According to the Java 2 Platform Security Architecture, a Principal ( is an entity (not in the EJB sense) in a computer system to which permissions are granted.
According to JAAS, a Subject ( may potentially have multiple identities each of which might be represented as a Principal.
To sum up, a subject may have many principals that represent it.
Moreover, I'm moving this thread to the Security forum as this topic is not really part of the SCBCD exam
[ April 01, 2004: Message edited by: Valentin Crettaz ]

[Blog] [Blogroll] [My Reviews] My Linked In
I agree. Here's the link:
subject: JAAS
It's not a secret anymore!