SubjectThreadState.bind

Binds a {@link Subject} and {@link hunt.shiro.mgt.SecurityManager SecurityManager} to the {@link ThreadContext} so they can be retrieved later by any {@code SecurityUtils.}{@link hunt.shiro.SecurityUtils#getSubject() getSubject()} calls that might occur during the thread's execution. <p/> Prior to binding, the {@code ThreadContext}'s existing {@link ThreadContext#getResources() resources} are retained so they can be restored later via the {@link #restore restore} call.

class SubjectThreadState
void
bind
()

Meta