Package jenkins.security
Class SecurityContextExecutorService
java.lang.Object
jenkins.util.InterceptingExecutorService
jenkins.security.SecurityContextExecutorService
- All Implemented Interfaces:
AutoCloseable,Executor,ExecutorService
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
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jenkins.util.InterceptingExecutorService
awaitTermination, delegate, execute, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.concurrent.ExecutorService
close
-
Constructor Details
-
SecurityContextExecutorService
-
-
Method Details
-
wrap
- Specified by:
wrapin classInterceptingExecutorService
-
wrap
- Specified by:
wrapin classInterceptingExecutorService
-