SecurityUtils is part of the API and intended for users to access. ThreadContext is an internal helper class that most users would not access directly.

On Mar 30, 2009, at 4:58 PM, Ryan McKinley wrote:

Assuming you are working in a web context, is there any reason to use SecurityUtils.getSubject() rather then ThreadContext.getSubject()

I'm guessing the former just enables you to have a static singleton as the SecurityManager and the later assums the SecurityManager has bound stuff to the ThreadContext.

thanks
ryan

Reply via email to