Uses of Interface
org.apache.shiro.subject.PrincipalCollection

Packages that use PrincipalCollection
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 these Realms). 
org.apache.shiro.authz Core interfaces and exceptions supporting Authorization (access control). 
org.apache.shiro.cas   
org.apache.shiro.mgt Provides the master SecurityManager 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 core Realm 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 the Subject interface, the most important concept in Shiro's API. 
org.apache.shiro.subject.support Concrete support implementations of most of the org.apache.shiro.subject interfaces. 
org.apache.shiro.util Your run-of-the-mill 'util' pacakge 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). 
org.apache.shiro.web.mgt Components supporting web-specific SecurityManager implementations. 
org.apache.shiro.web.subject.support Supporting implementations of org.apache.shiro.web.subject package interfaces. 
 

Uses of PrincipalCollection in org.apache.shiro.authc
 

Fields in org.apache.shiro.authc declared as PrincipalCollection
protected  PrincipalCollection SimpleAuthenticationInfo.principals
          The principals identifying the account associated with this AuthenticationInfo instance.
 

Methods in org.apache.shiro.authc that return PrincipalCollection
 PrincipalCollection SimpleAuthenticationInfo.getPrincipals()
           
 PrincipalCollection SimpleAccount.getPrincipals()
          Returns the principals, aka the identifying attributes (username, user id, first name, last name, etc) of this Account.
 PrincipalCollection AuthenticationInfo.getPrincipals()
          Returns all principals associated with the corresponding Subject.
 

Methods in org.apache.shiro.authc with parameters of type PrincipalCollection
protected  void AbstractAuthenticator.notifyLogout(PrincipalCollection principals)
          Notifies any registered AuthenticationListeners that a Subject has logged-out.
 void LogoutAware.onLogout(PrincipalCollection principals)
          Callback triggered when a Subject logs out of the system.
 void AuthenticationListener.onLogout(PrincipalCollection principals)
          Callback triggered when a Subject logs-out of the system.
 void AbstractAuthenticator.onLogout(PrincipalCollection principals)
          This implementation merely calls notifyLogout to allow any registered listeners to react to the logout.
 void SimpleAuthenticationInfo.setPrincipals(PrincipalCollection principals)
          Sets the identifying principal(s) represented by this instance.
 void SimpleAccount.setPrincipals(PrincipalCollection principals)
          Sets the principals, aka the identifying attributes (username, user id, first name, last name, etc) of this Account.
 

Constructors in org.apache.shiro.authc with parameters of type PrincipalCollection
SimpleAccount(PrincipalCollection principals, Object credentials)
          Constructs a SimpleAccount instance for the specified principals and credentials.
SimpleAccount(PrincipalCollection principals, Object hashedCredentials, ByteSource credentialsSalt)
          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.
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, 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
 void ModularRealmAuthenticator.onLogout(PrincipalCollection principals)
          First calls super.onLogout(principals) to ensure a logout notification is issued, and for each wrapped Realm that implements the LogoutAware 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
 void ModularRealmAuthorizer.checkPermission(PrincipalCollection principals, Permission permission)
          If !isPermitted(permission), throws an UnauthorizedException otherwise returns quietly.
 void Authorizer.checkPermission(PrincipalCollection subjectPrincipal, Permission permission)
          Ensures a subject/user Permission.implies(Permission) implies} the specified Permission.
 void ModularRealmAuthorizer.checkPermission(PrincipalCollection principals, String permission)
          If !isPermitted(permission), throws an UnauthorizedException otherwise returns quietly.
 void Authorizer.checkPermission(PrincipalCollection subjectPrincipal, String permission)
          Ensures the corresponding Subject/user implies the specified permission String.
 void ModularRealmAuthorizer.checkPermissions(PrincipalCollection principals, Collection<Permission> permissions)
          If !isPermitted(permission) for all the given Permissions, throws an UnauthorizedException otherwise returns quietly.
 void Authorizer.checkPermissions(PrincipalCollection subjectPrincipal, Collection<Permission> permissions)
          Ensures the corresponding Subject/user implies all of the specified permission strings.
 void ModularRealmAuthorizer.checkPermissions(PrincipalCollection principals, String... permissions)
          If !isPermitted(permission), throws an UnauthorizedException otherwise returns quietly.
 void Authorizer.checkPermissions(PrincipalCollection subjectPrincipal, String... permissions)
          Ensures the corresponding Subject/user implies all of the specified permission strings.
 void ModularRealmAuthorizer.checkRole(PrincipalCollection principals, String role)
          If !hasRole(role), throws an UnauthorizedException 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 an AuthorizationException if they do not.
 void ModularRealmAuthorizer.checkRoles(PrincipalCollection principals, Collection<String> roles)
          Calls {@link #checkRoles(PrincipalCollection principals, String...
 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 an AuthorizationException if they do not.
 void ModularRealmAuthorizer.checkRoles(PrincipalCollection principals, String... roles)
          Calls checkRole for each role specified.
 void Authorizer.checkRoles(PrincipalCollection subjectPrincipal, String... roleIdentifiers)
          Same as checkRoles(PrincipalCollection subjectPrincipal, Collection<String> roleIdentifiers) but doesn't require a collection as an argument.
 boolean ModularRealmAuthorizer.hasAllRoles(PrincipalCollection principals, Collection<String> roleIdentifiers)
          Returns true iff any of the configured realms' ModularRealmAuthorizer.hasRole(org.apache.shiro.subject.PrincipalCollection, String) call returns true for all roles specified, false otherwise.
 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.hasRole(PrincipalCollection principals, String roleIdentifier)
          Returns true if any of the configured realms' ModularRealmAuthorizer.hasRole(org.apache.shiro.subject.PrincipalCollection, String) call returns true, false otherwise.
 boolean Authorizer.hasRole(PrincipalCollection subjectPrincipal, String roleIdentifier)
          Returns true if the corresponding Subject/user has the specified role, false otherwise.
 boolean[] ModularRealmAuthorizer.hasRoles(PrincipalCollection principals, List<String> roleIdentifiers)
          Calls ModularRealmAuthorizer.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.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.isPermitted(PrincipalCollection principals, List<Permission> permissions)
          Returns true if any of the configured realms' ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, List) call returns true, false otherwise.
 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 ModularRealmAuthorizer.isPermitted(PrincipalCollection principals, Permission permission)
          Returns true if any of the configured realms' ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, Permission) call returns true, false otherwise.
 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... permissions)
          Returns true if any of the configured realms' ModularRealmAuthorizer.isPermittedAll(org.apache.shiro.subject.PrincipalCollection, String...) call returns true, false otherwise.
 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 ModularRealmAuthorizer.isPermitted(PrincipalCollection principals, String permission)
          Returns true if any of the configured realms' ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, String) returns true, false otherwise.
 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 ModularRealmAuthorizer.isPermittedAll(PrincipalCollection principals, Collection<Permission> permissions)
          Returns true if any of the configured realms' ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, Permission) call returns true for all of the specified Permissions, 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)
          Returns true if any of the configured realms' ModularRealmAuthorizer.isPermitted(org.apache.shiro.subject.PrincipalCollection, String) call returns true for all of the specified string permissions, 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.
 

Uses of PrincipalCollection in org.apache.shiro.cas
 

Methods in org.apache.shiro.cas with parameters of type PrincipalCollection
protected  AuthorizationInfo CasRealm.doGetAuthorizationInfo(PrincipalCollection principals)
          Retrieves the AuthorizationInfo for the given principals (the CAS previously authenticated user : id + attributes).
 

Uses of PrincipalCollection in org.apache.shiro.mgt
 

Methods in org.apache.shiro.mgt that return PrincipalCollection
protected  PrincipalCollection AbstractRememberMeManager.convertBytesToPrincipals(byte[] bytes, SubjectContext subjectContext)
          If a cipherService 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 the serializer's deserialize method.
protected  PrincipalCollection AbstractRememberMeManager.getIdentityToRemember(Subject subject, AuthenticationInfo info)
          Returns info.getPrincipals() and ignores the Subject argument.
protected  PrincipalCollection DefaultSecurityManager.getRememberedIdentity(SubjectContext subjectContext)
           
 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').
 PrincipalCollection AbstractRememberMeManager.getRememberedPrincipals(SubjectContext subjectContext)
          Implements the interface method by first acquiring the remembered serialized byte array.
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
 Serializer<PrincipalCollection> AbstractRememberMeManager.getSerializer()
          Returns the Serializer used to serialize and deserialize PrincipalCollection instances for persistent remember me storage.
 

Methods in org.apache.shiro.mgt with parameters of type PrincipalCollection
 void AuthorizingSecurityManager.checkPermission(PrincipalCollection principals, Permission permission)
           
 void AuthorizingSecurityManager.checkPermission(PrincipalCollection principals, String permission)
           
 void AuthorizingSecurityManager.checkPermissions(PrincipalCollection principals, Collection<Permission> permissions)
           
 void AuthorizingSecurityManager.checkPermissions(PrincipalCollection principals, String... permissions)
           
 void AuthorizingSecurityManager.checkRole(PrincipalCollection principals, String role)
           
 void AuthorizingSecurityManager.checkRoles(PrincipalCollection principals, Collection<String> roles)
           
 void AuthorizingSecurityManager.checkRoles(PrincipalCollection principals, 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, List<Permission> permissions)
           
 boolean AuthorizingSecurityManager.isPermitted(PrincipalCollection principals, Permission permission)
           
 boolean[] AuthorizingSecurityManager.isPermitted(PrincipalCollection principals, String... permissions)
           
 boolean AuthorizingSecurityManager.isPermitted(PrincipalCollection principals, String permissionString)
           
 boolean AuthorizingSecurityManager.isPermittedAll(PrincipalCollection principals, Collection<Permission> permissions)
           
 boolean AuthorizingSecurityManager.isPermittedAll(PrincipalCollection principals, String... permissions)
           
protected  Subject DefaultSubjectFactory.newSubjectInstance(PrincipalCollection principals, boolean authenticated, String host, Session session, SecurityManager securityManager)
          Deprecated. since 1.2 - override DefaultSubjectFactory.createSubject(org.apache.shiro.subject.SubjectContext) directly if you need to instantiate a custom Subject class.
protected  void AbstractRememberMeManager.rememberIdentity(Subject subject, PrincipalCollection accountPrincipals)
          Remembers the specified account principals by first converting them to a byte array and then remembers that byte array.
protected  byte[] AbstractRememberMeManager.serialize(PrincipalCollection principals)
          Serializes the given principals by serializing them to a byte array by using the serializer's serialize method.
 

Method parameters in org.apache.shiro.mgt with type arguments of type PrincipalCollection
 void AbstractRememberMeManager.setSerializer(Serializer<PrincipalCollection> serializer)
          Sets the Serializer used to serialize and deserialize PrincipalCollection 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
 void AuthorizingRealm.checkPermission(PrincipalCollection principal, Permission permission)
           
 void AuthorizingRealm.checkPermission(PrincipalCollection subjectIdentifier, String permission)
           
 void AuthorizingRealm.checkPermissions(PrincipalCollection principal, Collection<Permission> permissions)
           
 void AuthorizingRealm.checkPermissions(PrincipalCollection subjectIdentifier, String... permissions)
           
 void AuthorizingRealm.checkRole(PrincipalCollection principal, String role)
           
 void AuthorizingRealm.checkRoles(PrincipalCollection principal, Collection<String> roles)
           
 void AuthorizingRealm.checkRoles(PrincipalCollection principal, 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 CachingRealm.doClearCache(PrincipalCollection principals)
          This implementation does nothing - it is a template to be overridden by subclasses if necessary.
protected  void AuthorizingRealm.doClearCache(PrincipalCollection principals)
          Calls super.doClearCache to ensure any cached authentication data is removed and then calls AuthorizingRealm.clearCachedAuthorizationInfo(org.apache.shiro.subject.PrincipalCollection) to remove any cached authorization data.
protected  void AuthenticatingRealm.doClearCache(PrincipalCollection principals)
          This implementation clears out any cached authentication data by calling AuthenticatingRealm.clearCachedAuthenticationInfo(org.apache.shiro.subject.PrincipalCollection).
protected  AuthorizationInfo SimpleAccountRealm.doGetAuthorizationInfo(PrincipalCollection principals)
           
protected abstract  AuthorizationInfo AuthorizingRealm.doGetAuthorizationInfo(PrincipalCollection principals)
          Retrieves the AuthorizationInfo for the given principals from the underlying data store.
protected  Object AuthenticatingRealm.getAuthenticationCacheKey(PrincipalCollection principals)
          Returns the key under which AuthenticationInfo 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 specified principals, or null 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, List<Permission> permissions)
           
 boolean AuthorizingRealm.isPermitted(PrincipalCollection principals, Permission permission)
           
 boolean[] AuthorizingRealm.isPermitted(PrincipalCollection subjectIdentifier, String... permissions)
           
 boolean AuthorizingRealm.isPermitted(PrincipalCollection principals, String permission)
           
 boolean AuthorizingRealm.isPermittedAll(PrincipalCollection principal, Collection<Permission> permissions)
           
 boolean AuthorizingRealm.isPermittedAll(PrincipalCollection subjectIdentifier, String... 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
protected  AuthorizationInfo ActiveDirectoryRealm.queryForAuthorizationInfo(PrincipalCollection principals, LdapContextFactory ldapContextFactory)
          Builds an AuthorizationInfo 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
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's name
 

Uses of PrincipalCollection in org.apache.shiro.realm.ldap
 

Methods in org.apache.shiro.realm.ldap with parameters of type PrincipalCollection
protected  AuthorizationInfo JndiLdapRealm.doGetAuthorizationInfo(PrincipalCollection principals)
           
protected  AuthorizationInfo AbstractLdapRealm.doGetAuthorizationInfo(PrincipalCollection principals)
           
protected  AuthorizationInfo JndiLdapRealm.queryForAuthorizationInfo(PrincipalCollection principals, LdapContextFactory ldapContextFactory)
          Method that should be implemented by subclasses to build an AuthorizationInfo object by querying the LDAP context for the specified principal.
protected abstract  AuthorizationInfo AbstractLdapRealm.queryForAuthorizationInfo(PrincipalCollection principal, LdapContextFactory ldapContextFactory)
          Abstract method that should be implemented by subclasses to builds an AuthorizationInfo 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
 interface MutablePrincipalCollection
          A PrincipalCollection that allows modification.
 interface PrincipalMap
          EXPERIMENTAL - DO NOT USE YET

A PrincipalMap is map of all of a subject's principals - its identifying attributes like username, userId, etc.

 

Classes in org.apache.shiro.subject that implement PrincipalCollection
 class SimplePrincipalCollection
          A simple implementation of the MutablePrincipalCollection interface that tracks principals internally by storing them in a LinkedHashMap.
 class SimplePrincipalMap
          Default implementation of the PrincipalMap interface.
 

Methods in org.apache.shiro.subject that return PrincipalCollection
 PrincipalCollection Subject.getPreviousPrincipals()
          Returns the previous 'pre run as' identity of this Subject before assuming the current runAs identity, or null if this Subject is not operating under an assumed identity (normal state).
 PrincipalCollection SubjectContext.getPrincipals()
          Returns the principals (aka identity) that the constructed Subject should reflect.
 PrincipalCollection Subject.getPrincipals()
          Returns this Subject's principals (identifying attributes) in the form of a PrincipalCollection or null if this Subject is anonymous because it doesn't yet have any associated account data (for example, if they haven't logged in).
 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
 void SimplePrincipalCollection.addAll(PrincipalCollection principals)
           
 void MutablePrincipalCollection.addAll(PrincipalCollection principals)
          Adds all of the principals from the given principal collection to this collection.
 Subject.Builder Subject.Builder.principals(PrincipalCollection principals)
          Ensures the Subject 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 constructed Subject should reflect.
 

Constructors in org.apache.shiro.subject with parameters of type PrincipalCollection
SimplePrincipalCollection(PrincipalCollection principals)
           
 

Uses of PrincipalCollection in org.apache.shiro.subject.support
 

Fields in org.apache.shiro.subject.support declared as PrincipalCollection
protected  PrincipalCollection DelegatingSubject.principals
           
 

Methods in org.apache.shiro.subject.support that return PrincipalCollection
 PrincipalCollection DelegatingSubject.getPreviousPrincipals()
           
 PrincipalCollection DelegatingSubject.getPrincipals()
           
 PrincipalCollection DefaultSubjectContext.getPrincipals()
           
 PrincipalCollection DelegatingSubject.releaseRunAs()
           
 PrincipalCollection DefaultSubjectContext.resolvePrincipals()
           
 

Methods in org.apache.shiro.subject.support with parameters of type PrincipalCollection
 void DelegatingSubject.runAs(PrincipalCollection principals)
           
 void DefaultSubjectContext.setPrincipals(PrincipalCollection principals)
           
 

Constructors in org.apache.shiro.subject.support with parameters of type PrincipalCollection
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
static boolean CollectionUtils.isEmpty(PrincipalCollection principals)
          Returns true if the specified PrincipalCollection is null or empty, false otherwise.
 

Uses of PrincipalCollection in org.apache.shiro.web.mgt
 

Methods in org.apache.shiro.web.mgt with parameters of type PrincipalCollection
protected  Subject DefaultWebSubjectFactory.newSubjectInstance(PrincipalCollection principals, boolean authenticated, String host, Session session, ServletRequest request, ServletResponse response, SecurityManager securityManager)
          Deprecated. since 1.2 - override DefaultWebSubjectFactory.createSubject(org.apache.shiro.subject.SubjectContext) directly if you need to instantiate a custom Subject class.
 

Uses of PrincipalCollection in org.apache.shiro.web.subject.support
 

Constructors in org.apache.shiro.web.subject.support with parameters of type PrincipalCollection
WebDelegatingSubject(PrincipalCollection principals, boolean authenticated, String host, Session session, boolean sessionEnabled, ServletRequest request, ServletResponse response, SecurityManager securityManager)
           
WebDelegatingSubject(PrincipalCollection principals, boolean authenticated, String host, Session session, ServletRequest request, ServletResponse response, SecurityManager securityManager)
           
 



Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.