Package jenkins.security
Class ImpersonatingExecutorService
java.lang.Object
jenkins.util.InterceptingExecutorService
jenkins.security.ImpersonatingExecutorService
- All Implemented Interfaces:
AutoCloseable,Executor,ExecutorService
Uses
ACL.impersonate2(Authentication) for all tasks.- Since:
- 2.51
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionImpersonatingExecutorService(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, 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
-
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:
wrapin classInterceptingExecutorService
-
wrap
- Specified by:
wrapin classInterceptingExecutorService
-
ImpersonatingExecutorService(ExecutorService, Authentication)