Uses of Interface
org.apache.shiro.subject.SubjectContext
Packages that use SubjectContext
Package
Description
Provides the master
SecurityManager interface and a default implementation
hierarchy for managing all aspects of Shiro's functionality in an application.Components supporting the
Subject interface, the most important concept in
Shiro's API.Concrete support implementations of most of the
org.apache.shiro.subject interfaces.-
Uses of SubjectContext in org.apache.shiro.mgt
Methods in org.apache.shiro.mgt that return SubjectContextModifier and TypeMethodDescriptionprotected SubjectContextDefaultSecurityManager.copy(SubjectContext subjectContext) protected SubjectContextDefaultSecurityManager.createSubjectContext()protected SubjectContextDefaultSecurityManager.ensureSecurityManager(SubjectContext context) Determines if there is aSecurityManagerinstance in the context, and if not, adds 'this' to the context.protected SubjectContextDefaultSecurityManager.resolvePrincipals(SubjectContext context) Attempts to resolve an identity (aPrincipalCollection) for the context using heuristics.protected SubjectContextDefaultSecurityManager.resolveSession(SubjectContext context) Attempts to resolve any associated session based on the context and returns a context that represents this resolvedSessionto ensure it may be referenced if necessary by the invokedSubjectFactorythat performs actualSubjectconstruction.Methods in org.apache.shiro.mgt with parameters of type SubjectContextModifier and TypeMethodDescriptionprotected PrincipalCollectionAbstractRememberMeManager.convertBytesToPrincipals(byte[] bytes, SubjectContext subjectContext) If acipherServiceis available, it will be used to first decrypt the byte array.protected SubjectContextDefaultSecurityManager.copy(SubjectContext subjectContext) protected SessionContextDefaultSecurityManager.createSessionContext(SubjectContext subjectContext) DefaultSecurityManager.createSubject(SubjectContext subjectContext) This implementation functions as follows:DefaultSubjectFactory.createSubject(SubjectContext context) SecurityManager.createSubject(SubjectContext context) Creates aSubjectinstance reflecting the specified contextual data.SubjectFactory.createSubject(SubjectContext context) Creates a new Subject instance reflecting the state of the specified contextual data.protected SubjectDefaultSecurityManager.doCreateSubject(SubjectContext context) Actually creates aSubjectinstance by delegating to the internalsubjectFactory.protected SubjectContextDefaultSecurityManager.ensureSecurityManager(SubjectContext context) Determines if there is aSecurityManagerinstance in the context, and if not, adds 'this' to the context.voidRememberMeManager.forgetIdentity(SubjectContext subjectContext) Forgets any remembered identity corresponding to the subject context map being used to build a subject instance.protected PrincipalCollectionDefaultSecurityManager.getRememberedIdentity(SubjectContext subjectContext) AbstractRememberMeManager.getRememberedPrincipals(SubjectContext subjectContext) Implements the interface method by firstacquiringthe remembered serialized byte array.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 abstract byte[]AbstractRememberMeManager.getRememberedSerializedIdentity(SubjectContext subjectContext) Based on the given subject context data, retrieves the previously persisted serialized identity, ornullif there is no available data.protected SessionKeyDefaultSecurityManager.getSessionKey(SubjectContext context) protected PrincipalCollectionAbstractRememberMeManager.onRememberedPrincipalFailure(RuntimeException e, SubjectContext context) Called when an exception is thrown while trying to retrieve principals.protected SessionDefaultSecurityManager.resolveContextSession(SubjectContext context) protected SubjectContextDefaultSecurityManager.resolvePrincipals(SubjectContext context) Attempts to resolve an identity (aPrincipalCollection) for the context using heuristics.protected SubjectContextDefaultSecurityManager.resolveSession(SubjectContext context) Attempts to resolve any associated session based on the context and returns a context that represents this resolvedSessionto ensure it may be referenced if necessary by the invokedSubjectFactorythat performs actualSubjectconstruction. -
Uses of SubjectContext in org.apache.shiro.subject
Methods in org.apache.shiro.subject that return SubjectContextModifier and TypeMethodDescriptionprotected SubjectContextSubject.Builder.getSubjectContext()Returns the backing context used to build theSubjectinstance, available to subclasses since thecontextclass attribute is marked asprivate.protected SubjectContextSubject.Builder.newSubjectContextInstance()Creates a newSubjectContextinstance to be used to populate with subject contextual data that will then be sent to theSecurityManagerto create a newSubjectinstance. -
Uses of SubjectContext in org.apache.shiro.subject.support
Classes in org.apache.shiro.subject.support that implement SubjectContextConstructors in org.apache.shiro.subject.support with parameters of type SubjectContext