Associating itself with a ThreadLocal variable of the calling thread.
Associating a DomainCombiner with an AccessControlContext and binding it to
the execution thread by invoking AccessController.doPrivileged.
Updating the principals bound to the ProtectionDomains on the calling thread.
All other answers are wrong.
Updating local Subject object of the calling thread.
|