DefaultSubjectFactory

Default {@link SubjectFactory SubjectFactory} implementation that creates {@link hunt.shiro.subject.support.DelegatingSubject DelegatingSubject} instances.

Constructors

this
this()
Undocumented in source.

Members

Functions

createSubject
Subject createSubject(SubjectContext context)
Undocumented in source. Be warned that the author may not have intended to support it.
newSubjectInstance
deprecated Subject newSubjectInstance(PrincipalCollection principals, bool authenticated, string host, Session session, SecurityManager securityManager)

deprecated("") since 1.2 - override {@link #createSubject(hunt.shiro.subject.SubjectContext)} directly if you need to instantiate a custom {@link Subject} class.

Inherited Members

From SubjectFactory

createSubject
Subject createSubject(SubjectContext context)

Creates a new Subject instance reflecting the state of the specified contextual data. The data would be anything required to required to construct a {@code Subject} instance and its contents can vary based on environment. <p/> Any data supported by Shiro core will be accessible by one of the {@code SubjectContext}'s {@code get*} or {@code resolve*} methods. All other data is available as map {@link Map#get attribute}s.

Meta