Package jenkins.security
Class ImpersonatingExecutorService
- java.lang.Object
-
- jenkins.util.InterceptingExecutorService
-
- jenkins.security.ImpersonatingExecutorService
-
- All Implemented Interfaces:
Executor
,ExecutorService
public final class ImpersonatingExecutorService extends InterceptingExecutorService
UsesACL.impersonate2(Authentication)
for all tasks.- Since:
- 2.51
- See Also:
SecurityContextExecutorService
-
-
Constructor Summary
Constructors Constructor Description ImpersonatingExecutorService(ExecutorService base, Authentication authentication)
Deprecated.ImpersonatingExecutorService(ExecutorService base, org.springframework.security.core.Authentication authentication)
Creates a wrapper service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Runnable
wrap(Runnable r)
protected <V> Callable<V>
wrap(Callable<V> r)
-
Methods inherited from class jenkins.util.InterceptingExecutorService
awaitTermination, delegate, execute, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit, toString
-
-
-
-
Constructor Detail
-
ImpersonatingExecutorService
public ImpersonatingExecutorService(ExecutorService base, org.springframework.security.core.Authentication authentication)
Creates a wrapper service.- Parameters:
base
- the base serviceauthentication
- for exampleACL.SYSTEM2
- Since:
- 2.266
-
ImpersonatingExecutorService
@Deprecated public ImpersonatingExecutorService(ExecutorService base, Authentication authentication)
Deprecated.
-
-
Method Detail
-
wrap
protected Runnable wrap(Runnable r)
- Specified by:
wrap
in classInterceptingExecutorService
-
wrap
protected <V> Callable<V> wrap(Callable<V> r)
- Specified by:
wrap
in classInterceptingExecutorService
-
-