Java org.apache.shiro.subject PrincipalCollection fields, constructors, methods, implement or subclass

Example usage for Java org.apache.shiro.subject PrincipalCollection fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.shiro.subject PrincipalCollection.

The text is from its open source code.

Implementation

org.apache.shiro.subject.PrincipalCollection has the following implementations.
Click this link to see all its implementation.

Method

ListasList()
Returns a single Subject's principals retrieved from all configured Realms as a List, or an empty List if there are not any principals.
SetasSet()
Returns a single Subject's principals retrieved from all configured Realms as a Set, or an empty Set if there are not any principals.
CollectionbyType(Class type)
Returns all principals assignable from the specified type, or an empty Collection if no principals of that type are contained.
CollectionfromRealm(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.
ObjectgetPrimaryPrincipal()
Returns the primary principal used application-wide to uniquely identify the owning account/Subject.
SetgetRealmNames()
Returns the realm names that this collection has principals for.
booleanisEmpty()
Returns true if this collection is empty, false otherwise.
ToneByType(Class type)
Returns the first discovered principal assignable from the specified type, or null if there are none of the specified type.