Hi all,
 
I am learning Shiro and have a difficulty with understanding what is Principal 
in Shiro.
 
As I understand from this  https://stackoverflow.com/a/5025140/5057736 
Principal is a higher
level of user, system etc. For example, if in our application can work human 
users, external
systems, then they (users and systems) are principals.
 
However, from Shiro Terminology ( https://shiro.apache.org/terminology.html ) : 
A  Principal is any
identifying attribute of an application user (Subject). An ‘identifying 
attribute’ can be anything that
makes sense to your application - a username, a surname, a given name, a social 
security number,
a user ID, etc.
 
So, could anyone explain what is Principal — is it a User or User.getId()?
 
 
--
Best regards, Alex Orlov

Reply via email to