File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes JAAS Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "JAAS" Watch "JAAS" New topic
Author

JAAS

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?
pk
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
According to the Java 2 Platform Security Architecture, a Principal (java.security.Principal) is an entity (not in the EJB sense) in a computer system to which permissions are granted.
According to JAAS, a Subject (javax.security.auth.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 ]

SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
IntelliJ Java IDE
 
subject: JAAS
 
Threads others viewed
Any requirement about the name of the uploading jar file?
PASS in 83 on SCWCD Beta
any Errata link (URL) to Kathy and Bert's book?
How to get the total no. of Lines of a text file
will the score be shown on the certificate?
developer file tools