322 |
|
* be the same as the thread invoking this |
323 |
|
* <tt>privilegedThreadFactory</tt> method. A new |
324 |
|
* <tt>privilegedThreadFactory</tt> can be created within an |
325 |
< |
* {@link AccessController#doPrivileged} action to create |
326 |
< |
* threads with the selected permission settings holding within |
327 |
< |
* that action. Alternatively, a factory can be used to create |
328 |
< |
* threads with any available access control context by first |
329 |
< |
* setting them in the current thread, and then invoking this |
330 |
< |
* method. |
325 |
> |
* {@link AccessController#doPrivileged} action setting the |
326 |
> |
* current threads access control context to create threads with |
327 |
> |
* the selected permission settings holding within that action. |
328 |
|
* |
329 |
|
* <p> Note that while tasks running within such threads will have |
330 |
|
* the same access control and class loader settings as the |