This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Security and the fly likes Principal and Credential Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Principal and Credential" Watch "Principal and Credential" New topic
Author

Principal and Credential

S. Palanigounder
Ranch Hand

Joined: Apr 03, 2003
Posts: 145
What is Principal? What is Credential?
What is the difference between them?
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
hi
according to me,
principal is an object that presents the "identity" (name of the login user for e.g.)
credentials are the "credibility" parameters associated with the principal (password for e.g.)
in LDAP for e.g. we can have a user that can be "identified" by DN="uid=maulin,ou=developers,o=mycompany"
that is a principal for user "maulin" and if my password is "password" then my credentials is "password"
hope this helps.
regards
maulin
 
Don't get me started about those stupid light bulbs.
 
subject: Principal and Credential
 
Similar Threads
How to get Security Roles for a Principal?
getUserPrincipal returns user ID differently
JBoss Security Context propagation
Security Question about Handle class
JAAS and Tomcat