Example usage for Java org.apache.shiro.subject PrincipalCollection fields, constructors, methods, implement or subclass
The text is from its open source code.
List | asList() Returns a single Subject's principals retrieved from all configured Realms as a List, or an empty List if there are not any principals. |
Set | asSet() Returns a single Subject's principals retrieved from all configured Realms as a Set, or an empty Set if there are not any principals. |
Collection | byType(Class Returns all principals assignable from the specified type, or an empty Collection if no principals of that type are contained. |
Collection | fromRealm(String realmName) Returns a single Subject's principals retrieved from the specified Realm only as a Collection, or an empty Collection if there are not any principals from that realm. |
Object | getPrimaryPrincipal() Returns the primary principal used application-wide to uniquely identify the owning account/Subject. |
Set | getRealmNames() Returns the realm names that this collection has principals for. |
boolean | isEmpty() Returns true if this collection is empty, false otherwise. |
T | oneByType(Class Returns the first discovered principal assignable from the specified type, or null if there are none of the specified type. |