public class SimplePrincipalCollection extends Object implements org.apache.shiro.subject.PrincipalCollection
| Constructor and Description |
|---|
SimplePrincipalCollection(Object principal) |
| Modifier and Type | Method and Description |
|---|---|
List |
asList() |
Set |
asSet() |
<T> Collection<T> |
byType(Class<T> type) |
Collection |
fromRealm(String realmName) |
Object |
getPrimaryPrincipal() |
Set<String> |
getRealmNames() |
boolean |
isEmpty() |
Iterator |
iterator() |
<T> T |
oneByType(Class<T> type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic SimplePrincipalCollection(Object principal)
public Object getPrimaryPrincipal()
getPrimaryPrincipal in interface org.apache.shiro.subject.PrincipalCollectionpublic <T> T oneByType(Class<T> type)
oneByType in interface org.apache.shiro.subject.PrincipalCollectionpublic <T> Collection<T> byType(Class<T> type)
byType in interface org.apache.shiro.subject.PrincipalCollectionpublic List asList()
asList in interface org.apache.shiro.subject.PrincipalCollectionpublic Set asSet()
asSet in interface org.apache.shiro.subject.PrincipalCollectionpublic Collection fromRealm(String realmName)
fromRealm in interface org.apache.shiro.subject.PrincipalCollectionpublic Set<String> getRealmNames()
getRealmNames in interface org.apache.shiro.subject.PrincipalCollectionpublic boolean isEmpty()
isEmpty in interface org.apache.shiro.subject.PrincipalCollectionCopyright © 2015. All Rights Reserved.