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 APrincipalCollectionthat allows modification.PrincipalCollection A collection of all principals associated with a correspondingSubject.PrincipalMap EXPERIMENTAL - DO NOT USE YETSubject ASubjectrepresents state and security operations for a single application user.SubjectContext ASubjectContextis a 'bucket' of data presented to aSecurityManagerwhich interprets this data to constructSubjectinstances. -
Class Summary Class Description SimplePrincipalCollection A simple implementation of theMutablePrincipalCollectioninterface that tracks principals internally by storing them in aLinkedHashMap.SimplePrincipalMap Default implementation of thePrincipalMapinterface.Subject.Builder Builder design pattern implementation for creatingSubjectinstances 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 aSubjectexecutes aCallable.