Example usage for Java org.apache.shiro.subject.support SubjectThreadState fields, constructors, methods, implement or subclass
The text is from its open source code.
SubjectThreadState(Subject subject) Creates a new SubjectThreadState that will bind and unbind the specified Subject to the thread |
void | bind() Binds a Subject and org.apache.shiro.mgt.SecurityManager SecurityManager to the ThreadContext so they can be retrieved later by any SecurityUtils. |
void | restore() ThreadContext#remove Remove s all thread-state that was bound by this instance. |