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