Package org.apache.shiro.subject
Components supporting the
Subject
interface, the most important concept in
Shiro's API.
A Subject
is the primary component when using Shiro programmatically for single-user
security operations, and it is the handle to any accessible user security data. All single-user
authentication, authorization and session operations are performed via a Subject
instance.-
Interface Summary Interface Description MutablePrincipalCollection APrincipalCollection
that allows modification.PrincipalCollection A collection of all principals associated with a correspondingSubject
.PrincipalMap EXPERIMENTAL - DO NOT USE YETSubject ASubject
represents state and security operations for a single application user.SubjectContext ASubjectContext
is a 'bucket' of data presented to aSecurityManager
which interprets this data to constructSubject
instances. -
Class Summary Class Description SimplePrincipalCollection A simple implementation of theMutablePrincipalCollection
interface that tracks principals internally by storing them in aLinkedHashMap
.SimplePrincipalMap Default implementation of thePrincipalMap
interface.Subject.Builder Builder design pattern implementation for creatingSubject
instances in a simplified way without requiring knowledge of Shiro's construction techniques. -
Exception Summary Exception Description ExecutionException Exception wrapping any potential checked exception thrown when aSubject
executes aCallable
.