Package jenkins.security
Class ImpersonatingExecutorService
java.lang.Object
jenkins.util.InterceptingExecutorService
jenkins.security.ImpersonatingExecutorService
- All Implemented Interfaces:
Executor
,ExecutorService
Uses
ACL.impersonate2(Authentication)
for all tasks.- Since:
- 2.51
- See Also:
-
Constructor Summary
ConstructorDescriptionImpersonatingExecutorService
(ExecutorService base, Authentication authentication) Deprecated.ImpersonatingExecutorService
(ExecutorService base, org.springframework.security.core.Authentication authentication) Creates a wrapper service. -
Method Summary
Methods inherited from class jenkins.util.InterceptingExecutorService
awaitTermination, delegate, execute, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit, toString
-
Constructor Details
-
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 Details
-
wrap
- Specified by:
wrap
in classInterceptingExecutorService
-
wrap
- Specified by:
wrap
in classInterceptingExecutorService
-
ImpersonatingExecutorService(ExecutorService, Authentication)