Uses of Interface
org.apache.shiro.subject.PrincipalCollection
-
Packages that use PrincipalCollection Package Description org.apache.shiro.authc Core interfaces and exceptions concerning Authentication (the act of logging-in).org.apache.shiro.authc.pam Support for PAM, or Pluggable Authentication Modules, which is the capability to authenticate a user against multiple configurable (pluggable) modules (Shiro calls theseRealm
s).org.apache.shiro.authz Core interfaces and exceptions supporting Authorization (access control).org.apache.shiro.mgt Provides the masterSecurityManager
interface and a default implementation hierarchy for managing all aspects of Shiro's functionality in an application.org.apache.shiro.realm Components and sub-packages used in supporting the coreRealm
interface.org.apache.shiro.realm.activedirectory Realms that acquire security data from a Microsoft Active Directory.org.apache.shiro.realm.jdbc Realms that acquire security data from an RDBMS (Relational Database Management System) using the JDBC API.org.apache.shiro.realm.ldap Realms that acquire security data from an LDAP (Lightweight Directory Access Protocol) server utilizing LDAP/Naming APIs.org.apache.shiro.subject Components supporting theSubject
interface, the most important concept in Shiro's API.org.apache.shiro.subject.support Concrete support implementations of most of theorg.apache.shiro.subject
interfaces.org.apache.shiro.util Your run-of-the-mill 'util' package for components and logic widely used across the framework that can't find their home into a proper OO hierarchy (or, most likely for things used across many hierarchies). -
-
Uses of PrincipalCollection in org.apache.shiro.authc
Fields in org.apache.shiro.authc declared as PrincipalCollection Modifier and Type Field Description protected PrincipalCollection
SimpleAuthenticationInfo. principals
The principals identifying the account associated with this AuthenticationInfo instance.Methods in org.apache.shiro.authc that return PrincipalCollection Modifier and Type Method Description PrincipalCollection
AuthenticationInfo. getPrincipals()
Returns all principals associated with the corresponding Subject.PrincipalCollection
SimpleAccount. getPrincipals()
Returns the principals, aka the identifying attributes (username, user id, first name, last name, etc) of this Account.PrincipalCollection
SimpleAuthenticationInfo. getPrincipals()
Methods in org.apache.shiro.authc with parameters of type PrincipalCollection Modifier and Type Method Description protected void
AbstractAuthenticator. notifyLogout(PrincipalCollection principals)
Notifies any registeredAuthenticationListener
s that aSubject
has logged-out.void
AbstractAuthenticator. onLogout(PrincipalCollection principals)
This implementation merely callsnotifyLogout
to allow any registered listeners to react to the logout.void
AuthenticationListener. onLogout(PrincipalCollection principals)
Callback triggered when aSubject
logs-out of the system.void
LogoutAware. onLogout(PrincipalCollection principals)
Callback triggered when aSubject
logs out of the system.void
SimpleAccount. setPrincipals(PrincipalCollection principals)
Sets the principals, aka the identifying attributes (username, user id, first name, last name, etc) of this Account.void
SimpleAuthenticationInfo. setPrincipals(PrincipalCollection principals)
Sets the identifying principal(s) represented by this instance.Constructors in org.apache.shiro.authc with parameters of type PrincipalCollection Constructor Description SimpleAccount(PrincipalCollection principals, Object credentials)
Constructs a SimpleAccount instance for the specified principals and credentials.SimpleAccount(PrincipalCollection principals, Object credentials, Set<String> roles)
Constructs a SimpleAccount instance for the specified principals and credentials, with the assigned roles.SimpleAccount(PrincipalCollection principals, Object credentials, Set<String> roleNames, Set<Permission> permissions)
Constructs a SimpleAccount instance from the given principals and credentials, with the the assigned roles and permissions.SimpleAccount(PrincipalCollection principals, Object hashedCredentials, org.apache.shiro.util.ByteSource credentialsSalt)
Constructs a SimpleAccount instance for the specified principals and credentials.SimpleAuthenticationInfo(PrincipalCollection principals, Object credentials)
Constructor that takes in an account's identifying principal(s) and its corresponding credentials that verify the principals.SimpleAuthenticationInfo(PrincipalCollection principals, Object hashedCredentials, org.apache.shiro.util.ByteSource credentialsSalt)
Constructor that takes in an account's identifying principal(s), hashed credentials used to verify the principals, and the salt used when hashing the credentials. -
Uses of PrincipalCollection in org.apache.shiro.authc.pam
Methods in org.apache.shiro.authc.pam with parameters of type PrincipalCollection Modifier and Type Method Description void
ModularRealmAuthenticator. onLogout(PrincipalCollection principals)
First callssuper.onLogout(principals)
to ensure a logout notification is issued, and for each wrappedRealm
that implements theLogoutAware
interface, calls((LogoutAware)realm).onLogout(principals)
to allow each realm the opportunity to perform logout/cleanup operations during an user-logout. -
Uses of PrincipalCollection in org.apache.shiro.authz
Methods in org.apache.shiro.authz with parameters of type PrincipalCollection Modifier and Type Method Description void
Authorizer. checkPermission(PrincipalCollection subjectPrincipal, String permission)
Ensures the corresponding Subject/user implies the specified permission String.void
Authorizer. checkPermission(PrincipalCollection subjectPrincipal, Permission permission)
Ensures a subject/userPermission.implies(Permission)
implies} the specified Permission.void
ModularRealmAuthorizer. checkPermission(PrincipalCollection principals, String permission)
If !isPermitted(permission)
, throws anUnauthorizedException
otherwise returns quietly.void
ModularRealmAuthorizer. checkPermission(PrincipalCollection principals, Permission permission)
If !isPermitted(permission)
, throws anUnauthorizedException
otherwise returns quietly.void
Authorizer. checkPermissions(PrincipalCollection subjectPrincipal, String... permissions)
Ensures the corresponding Subject/userimplies
all of the specified permission strings.void
Authorizer. checkPermissions(PrincipalCollection subjectPrincipal, Collection<Permission> permissions)
Ensures the corresponding Subject/userimplies
all of the specified permission strings.void
ModularRealmAuthorizer. checkPermissions(PrincipalCollection principals, String... permissions)
If !isPermitted(permission)
, throws anUnauthorizedException
otherwise returns quietly.void
ModularRealmAuthorizer. checkPermissions(PrincipalCollection principals, Collection<Permission> permissions)
If !isPermitted(permission)
for all the given Permissions, throws anUnauthorizedException
otherwise returns quietly.void
Authorizer. checkRole(PrincipalCollection subjectPrincipal, String roleIdentifier)
Asserts the corresponding Subject/user has the specified role by returning quietly if they do or throwing anAuthorizationException
if they do not.void
ModularRealmAuthorizer. checkRole(PrincipalCollection principals, String role)
If !hasRole(role)
, throws anUnauthorizedException
otherwise returns quietly.void
Authorizer. checkRoles(PrincipalCollection subjectPrincipal, String... roleIdentifiers)
Same ascheckRoles(PrincipalCollection subjectPrincipal, Collection<String> roleIdentifiers)
but doesn't require a collection as an argument.void
Authorizer. checkRoles(PrincipalCollection subjectPrincipal, Collection<String> roleIdentifiers)
Asserts the corresponding Subject/user has all of the specified roles by returning quietly if they do or throwing anAuthorizationException
if they do not.void
ModularRealmAuthorizer. checkRoles(PrincipalCollection principals, String... roles)
CallscheckRole
for each role specified.void
ModularRealmAuthorizer. checkRoles(PrincipalCollection principals, Collection<String> roles)
boolean
Authorizer. hasAllRoles(PrincipalCollection subjectPrincipal, Collection<String> roleIdentifiers)
Returns true if the corresponding Subject/user has all of the specified roles, false otherwise.boolean
ModularRealmAuthorizer. hasAllRoles(PrincipalCollection principals, Collection<String> roleIdentifiers)
Returnstrue
iff any of the configured realms'ModularRealmAuthorizer.hasRole(org.apache.shiro.subject.PrincipalCollection, String)
call returnstrue
for all roles specified,false
otherwise.boolean
Authorizer. hasRole(PrincipalCollection subjectPrincipal, String roleIdentifier)
Returns true if the corresponding Subject/user has the specified role, false otherwise.boolean
ModularRealmAuthorizer. hasRole(PrincipalCollection principals, String roleIdentifier)
Returnstrue
if any of the configured realms'ModularRealmAuthorizer.hasRole(org.apache.shiro.subject.PrincipalCollection, String)
call returnstrue
,false
otherwise.boolean[]
Authorizer. hasRoles(PrincipalCollection subjectPrincipal, List<String> roleIdentifiers)
Checks if the corresponding Subject/user has the specified roles, returning a boolean array indicating which roles are associated with the given subject.boolean[]
ModularRealmAuthorizer. hasRoles(PrincipalCollection principals, List<String> roleIdentifiers)
CallsModularRealmAuthorizer.hasRole(org.apache.shiro.subject.PrincipalCollection, String)
for each role name in the specified collection and places the return value from each call at the respective location in the returned array.boolean
Authorizer. isPermitted(PrincipalCollection principals, String permission)
Returns true if the corresponding subject/user is permitted to perform an action or access a resource summarized by the specified permission string.boolean[]
Authorizer. isPermitted(PrincipalCollection subjectPrincipal, String... permissions)
Checks if the corresponding Subject implies the given permission strings and returns a boolean array indicating which permissions are implied.boolean[]
Authorizer. isPermitted(PrincipalCollection subjectPrincipal, List<Permission> permissions)
Checks if the corresponding Subject/user implies the given Permissions and returns a boolean array indicating which permissions are implied.boolean
Authorizer. isPermitted(PrincipalCollection subjectPrincipal, Permission permission)
Returns true if the corresponding subject/user is permitted to perform an action or access a resource summarized by the specified permission.boolean
ModularRealmAuthorizer. isPermitted(PrincipalCollection principals, String permission)
Returnstrue
if any of the configured realms'ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, String)
returnstrue
,false
otherwise.boolean[]
ModularRealmAuthorizer. isPermitted(PrincipalCollection principals, String... permissions)
Returnstrue
if any of the configured realms'ModularRealmAuthorizer.isPermittedAll(org.apache.shiro.subject.PrincipalCollection, String...)
call returnstrue
,false
otherwise.boolean[]
ModularRealmAuthorizer. isPermitted(PrincipalCollection principals, List<Permission> permissions)
Returnstrue
if any of the configured realms'ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, List)
call returnstrue
,false
otherwise.boolean
ModularRealmAuthorizer. isPermitted(PrincipalCollection principals, Permission permission)
Returnstrue
if any of the configured realms'ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, Permission)
call returnstrue
,false
otherwise.boolean
Authorizer. isPermittedAll(PrincipalCollection subjectPrincipal, String... permissions)
Returns true if the corresponding Subject/user implies all of the specified permission strings, false otherwise.boolean
Authorizer. isPermittedAll(PrincipalCollection subjectPrincipal, Collection<Permission> permissions)
Returns true if the corresponding Subject/user implies all of the specified permissions, false otherwise.boolean
ModularRealmAuthorizer. isPermittedAll(PrincipalCollection principals, String... permissions)
Returnstrue
if any of the configured realms'ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, String)
call returnstrue
for all of the specified string permissions,false
otherwise.boolean
ModularRealmAuthorizer. isPermittedAll(PrincipalCollection principals, Collection<Permission> permissions)
Returnstrue
if any of the configured realms'ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, Permission)
call returnstrue
for all of the specified Permissions,false
otherwise. -
Uses of PrincipalCollection in org.apache.shiro.mgt
Methods in org.apache.shiro.mgt that return PrincipalCollection Modifier and Type Method Description protected PrincipalCollection
AbstractRememberMeManager. convertBytesToPrincipals(byte[] bytes, SubjectContext subjectContext)
If acipherService
is available, it will be used to first decrypt the byte array.protected PrincipalCollection
AbstractRememberMeManager. deserialize(byte[] serializedIdentity)
De-serializes the given byte array by using theserializer
'sdeserialize
method.protected PrincipalCollection
AbstractRememberMeManager. getIdentityToRemember(Subject subject, AuthenticationInfo info)
protected PrincipalCollection
DefaultSecurityManager. getRememberedIdentity(SubjectContext subjectContext)
PrincipalCollection
AbstractRememberMeManager. getRememberedPrincipals(SubjectContext subjectContext)
Implements the interface method by firstacquiring
the remembered serialized byte array.PrincipalCollection
RememberMeManager. getRememberedPrincipals(SubjectContext subjectContext)
Based on the specified subject context map being used to build a Subject instance, returns any previously remembered principals for the subject for automatic identity association (aka 'Remember Me').protected PrincipalCollection
AbstractRememberMeManager. onRememberedPrincipalFailure(RuntimeException e, SubjectContext context)
Called when an exception is thrown while trying to retrieve principals.Methods in org.apache.shiro.mgt that return types with arguments of type PrincipalCollection Modifier and Type Method Description org.apache.shiro.io.Serializer<PrincipalCollection>
AbstractRememberMeManager. getSerializer()
Returns theSerializer
used to serialize and deserializePrincipalCollection
instances for persistent remember me storage.Methods in org.apache.shiro.mgt with parameters of type PrincipalCollection Modifier and Type Method Description void
AuthorizingSecurityManager. checkPermission(PrincipalCollection principals, String permission)
void
AuthorizingSecurityManager. checkPermission(PrincipalCollection principals, Permission permission)
void
AuthorizingSecurityManager. checkPermissions(PrincipalCollection principals, String... permissions)
void
AuthorizingSecurityManager. checkPermissions(PrincipalCollection principals, Collection<Permission> permissions)
void
AuthorizingSecurityManager. checkRole(PrincipalCollection principals, String role)
void
AuthorizingSecurityManager. checkRoles(PrincipalCollection principals, String... roles)
void
AuthorizingSecurityManager. checkRoles(PrincipalCollection principals, Collection<String> roles)
protected byte[]
AbstractRememberMeManager. convertPrincipalsToBytes(PrincipalCollection principals)
Converts the given principal collection the byte array that will be persisted to be 'remembered' later.boolean
AuthorizingSecurityManager. hasAllRoles(PrincipalCollection principals, Collection<String> roleIdentifiers)
boolean
AuthorizingSecurityManager. hasRole(PrincipalCollection principals, String roleIdentifier)
boolean[]
AuthorizingSecurityManager. hasRoles(PrincipalCollection principals, List<String> roleIdentifiers)
boolean
AuthorizingSecurityManager. isPermitted(PrincipalCollection principals, String permissionString)
boolean[]
AuthorizingSecurityManager. isPermitted(PrincipalCollection principals, String... permissions)
boolean[]
AuthorizingSecurityManager. isPermitted(PrincipalCollection principals, List<Permission> permissions)
boolean
AuthorizingSecurityManager. isPermitted(PrincipalCollection principals, Permission permission)
boolean
AuthorizingSecurityManager. isPermittedAll(PrincipalCollection principals, String... permissions)
boolean
AuthorizingSecurityManager. isPermittedAll(PrincipalCollection principals, Collection<Permission> permissions)
protected Subject
DefaultSubjectFactory. newSubjectInstance(PrincipalCollection principals, boolean authenticated, String host, Session session, SecurityManager securityManager)
Deprecated.since 1.2 - overrideDefaultSubjectFactory.createSubject(org.apache.shiro.subject.SubjectContext)
directly if you need to instantiate a customSubject
class.protected void
AbstractRememberMeManager. rememberIdentity(Subject subject, PrincipalCollection accountPrincipals)
Remembers the specified account principals by firstconverting
them to a byte array and thenremembers
that byte array.protected byte[]
AbstractRememberMeManager. serialize(PrincipalCollection principals)
Serializes the givenprincipals
by serializing them to a byte array by using theserializer
'sserialize
method.Method parameters in org.apache.shiro.mgt with type arguments of type PrincipalCollection Modifier and Type Method Description void
AbstractRememberMeManager. setSerializer(org.apache.shiro.io.Serializer<PrincipalCollection> serializer)
Sets theSerializer
used to serialize and deserializePrincipalCollection
instances for persistent remember me storage. -
Uses of PrincipalCollection in org.apache.shiro.realm
Methods in org.apache.shiro.realm with parameters of type PrincipalCollection Modifier and Type Method Description void
AuthorizingRealm. checkPermission(PrincipalCollection subjectIdentifier, String permission)
void
AuthorizingRealm. checkPermission(PrincipalCollection principal, Permission permission)
void
AuthorizingRealm. checkPermissions(PrincipalCollection subjectIdentifier, String... permissions)
void
AuthorizingRealm. checkPermissions(PrincipalCollection principal, Collection<Permission> permissions)
void
AuthorizingRealm. checkRole(PrincipalCollection principal, String role)
void
AuthorizingRealm. checkRoles(PrincipalCollection principal, String... roles)
void
AuthorizingRealm. checkRoles(PrincipalCollection principal, Collection<String> roles)
protected void
CachingRealm. clearCache(PrincipalCollection principals)
Clears out any cached data associated with the specified account identity/identities.protected void
AuthenticatingRealm. clearCachedAuthenticationInfo(PrincipalCollection principals)
Clears out the AuthenticationInfo cache entry for the specified account.protected void
AuthorizingRealm. clearCachedAuthorizationInfo(PrincipalCollection principals)
Clears out the AuthorizationInfo cache entry for the specified account.protected void
AuthenticatingRealm. doClearCache(PrincipalCollection principals)
This implementation clears out any cached authentication data by callingAuthenticatingRealm.clearCachedAuthenticationInfo(org.apache.shiro.subject.PrincipalCollection)
.protected void
AuthorizingRealm. doClearCache(PrincipalCollection principals)
Callssuper.doClearCache
to ensure any cached authentication data is removed and then callsAuthorizingRealm.clearCachedAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection)
to remove any cached authorization data.protected void
CachingRealm. doClearCache(PrincipalCollection principals)
This implementation does nothing - it is a template to be overridden by subclasses if necessary.protected abstract AuthorizationInfo
AuthorizingRealm. doGetAuthorizationInfo(PrincipalCollection principals)
Retrieves the AuthorizationInfo for the given principals from the underlying data store.protected AuthorizationInfo
SimpleAccountRealm. doGetAuthorizationInfo(PrincipalCollection principals)
protected Object
AuthenticatingRealm. getAuthenticationCacheKey(PrincipalCollection principals)
Returns the key under whichAuthenticationInfo
instances are cached if authentication caching is enabled.protected Object
AuthorizingRealm. getAuthorizationCacheKey(PrincipalCollection principals)
protected AuthorizationInfo
AuthorizingRealm. getAuthorizationInfo(PrincipalCollection principals)
Returns an account's authorization-specific information for the specifiedprincipals
, ornull
if no account could be found.protected Object
CachingRealm. getAvailablePrincipal(PrincipalCollection principals)
A utility method for subclasses that returns the first available principal of interest to this particular realm.protected String
SimpleAccountRealm. getUsername(PrincipalCollection principals)
boolean
AuthorizingRealm. hasAllRoles(PrincipalCollection principal, Collection<String> roleIdentifiers)
boolean
AuthorizingRealm. hasRole(PrincipalCollection principal, String roleIdentifier)
boolean[]
AuthorizingRealm. hasRoles(PrincipalCollection principal, List<String> roleIdentifiers)
boolean
AuthorizingRealm. isPermitted(PrincipalCollection principals, String permission)
boolean[]
AuthorizingRealm. isPermitted(PrincipalCollection subjectIdentifier, String... permissions)
boolean[]
AuthorizingRealm. isPermitted(PrincipalCollection principals, List<Permission> permissions)
boolean
AuthorizingRealm. isPermitted(PrincipalCollection principals, Permission permission)
boolean
AuthorizingRealm. isPermittedAll(PrincipalCollection subjectIdentifier, String... permissions)
boolean
AuthorizingRealm. isPermittedAll(PrincipalCollection principal, Collection<Permission> permissions)
void
CachingRealm. onLogout(PrincipalCollection principals)
If caching is enabled, this will clear any cached data associated with the specified account identity. -
Uses of PrincipalCollection in org.apache.shiro.realm.activedirectory
Methods in org.apache.shiro.realm.activedirectory with parameters of type PrincipalCollection Modifier and Type Method Description protected AuthorizationInfo
ActiveDirectoryRealm. queryForAuthorizationInfo(PrincipalCollection principals, LdapContextFactory ldapContextFactory)
Builds anAuthorizationInfo
object by querying the active directory LDAP context for the groups that a user is a member of. -
Uses of PrincipalCollection in org.apache.shiro.realm.jdbc
Methods in org.apache.shiro.realm.jdbc with parameters of type PrincipalCollection Modifier and Type Method Description protected AuthorizationInfo
JdbcRealm. doGetAuthorizationInfo(PrincipalCollection principals)
This implementation of the interface expects the principals collection to return a String username keyed off of this realm'sname
-
Uses of PrincipalCollection in org.apache.shiro.realm.ldap
Methods in org.apache.shiro.realm.ldap with parameters of type PrincipalCollection Modifier and Type Method Description protected AuthorizationInfo
AbstractLdapRealm. doGetAuthorizationInfo(PrincipalCollection principals)
protected AuthorizationInfo
DefaultLdapRealm. doGetAuthorizationInfo(PrincipalCollection principals)
protected abstract AuthorizationInfo
AbstractLdapRealm. queryForAuthorizationInfo(PrincipalCollection principal, LdapContextFactory ldapContextFactory)
Abstract method that should be implemented by subclasses to builds anAuthorizationInfo
object by querying the LDAP context for the specified principal.protected AuthorizationInfo
DefaultLdapRealm. queryForAuthorizationInfo(PrincipalCollection principals, LdapContextFactory ldapContextFactory)
Method that should be implemented by subclasses to build anAuthorizationInfo
object by querying the LDAP context for the specified principal. -
Uses of PrincipalCollection in org.apache.shiro.subject
Subinterfaces of PrincipalCollection in org.apache.shiro.subject Modifier and Type Interface Description interface
MutablePrincipalCollection
APrincipalCollection
that allows modification.interface
PrincipalMap
EXPERIMENTAL - DO NOT USE YETClasses in org.apache.shiro.subject that implement PrincipalCollection Modifier and Type Class Description class
SimplePrincipalCollection
A simple implementation of theMutablePrincipalCollection
interface that tracks principals internally by storing them in aLinkedHashMap
.class
SimplePrincipalMap
Default implementation of thePrincipalMap
interface.Methods in org.apache.shiro.subject that return PrincipalCollection Modifier and Type Method Description PrincipalCollection
Subject. getPreviousPrincipals()
Returns the previous 'pre run as' identity of thisSubject
before assuming the currentrunAs
identity, ornull
if thisSubject
is not operating under an assumed identity (normal state).PrincipalCollection
Subject. getPrincipals()
Returns this Subject's principals (identifying attributes) in the form of aPrincipalCollection
ornull
if this Subject is anonymous because it doesn't yet have any associated account data (for example, if they haven't logged in).PrincipalCollection
SubjectContext. getPrincipals()
Returns the principals (aka identity) that the constructedSubject
should reflect.PrincipalCollection
Subject. releaseRunAs()
Releases the current 'run as' (assumed) identity and reverts back to the previous 'pre run as' identity that existed before#runAs runAs
was called.PrincipalCollection
SubjectContext. resolvePrincipals()
Methods in org.apache.shiro.subject with parameters of type PrincipalCollection Modifier and Type Method Description void
MutablePrincipalCollection. addAll(PrincipalCollection principals)
Adds all of the principals from the given principal collection to this collection.void
SimplePrincipalCollection. addAll(PrincipalCollection principals)
Subject.Builder
Subject.Builder. principals(PrincipalCollection principals)
Ensures theSubject
being built will reflect the specified principals (aka identity).void
Subject. runAs(PrincipalCollection principals)
Allows this subject to 'run as' or 'assume' another identity indefinitely.void
SubjectContext. setPrincipals(PrincipalCollection principals)
Sets the principals (aka identity) that the constructedSubject
should reflect.Constructors in org.apache.shiro.subject with parameters of type PrincipalCollection Constructor Description SimplePrincipalCollection(PrincipalCollection principals)
-
Uses of PrincipalCollection in org.apache.shiro.subject.support
Fields in org.apache.shiro.subject.support declared as PrincipalCollection Modifier and Type Field Description protected PrincipalCollection
DelegatingSubject. principals
Methods in org.apache.shiro.subject.support that return PrincipalCollection Modifier and Type Method Description PrincipalCollection
DelegatingSubject. getPreviousPrincipals()
PrincipalCollection
DefaultSubjectContext. getPrincipals()
PrincipalCollection
DelegatingSubject. getPrincipals()
PrincipalCollection
DelegatingSubject. releaseRunAs()
PrincipalCollection
DefaultSubjectContext. resolvePrincipals()
Methods in org.apache.shiro.subject.support with parameters of type PrincipalCollection Modifier and Type Method Description void
DelegatingSubject. runAs(PrincipalCollection principals)
void
DefaultSubjectContext. setPrincipals(PrincipalCollection principals)
Constructors in org.apache.shiro.subject.support with parameters of type PrincipalCollection Constructor Description DelegatingSubject(PrincipalCollection principals, boolean authenticated, String host, Session session, boolean sessionCreationEnabled, SecurityManager securityManager)
DelegatingSubject(PrincipalCollection principals, boolean authenticated, String host, Session session, SecurityManager securityManager)
-
Uses of PrincipalCollection in org.apache.shiro.util
Methods in org.apache.shiro.util with parameters of type PrincipalCollection Modifier and Type Method Description static boolean
CollectionUtils. isEmpty(PrincipalCollection principals)
Deprecated.Use PrincipalCollection.isEmpty() directly.
-