Subject.getPrincipals

Returns this Subject's principals (identifying attributes) in the form of a {@code PrincipalCollection} or {@code null} if this Subject is anonymous because it doesn't yet have any associated account data (for example, if they haven't logged in). <p/> The word &quot;principals&quot; is nothing more than a fancy security term for identifying attributes associated with a Subject, aka, application user. For example, user id, a surname (family/last name), given (first) name, social security number, nickname, username, etc, are all examples of a principal.

@return all of this Subject's principals (identifying attributes). @see #getPrincipal() @see hunt.shiro.subject.PrincipalCollection#getPrimaryPrincipal()

interface Subject
getPrincipals
()

Meta