Class SecurityContextExecutorService

java.lang.Object
jenkins.util.InterceptingExecutorService
jenkins.security.SecurityContextExecutorService
All Implemented Interfaces:
Executor, ExecutorService

public class SecurityContextExecutorService extends InterceptingExecutorService
Creates a delegating ExecutorService implementation whose submit and related methods capture the current SecurityContext and then wrap any runnable/callable objects in another runnable/callable that sets the context before execution and resets it afterwards.
Since:
1.561
Author:
Patrick McKeown, Kohsuke Kawaguchi