public final class ImpersonatingExecutorService extends InterceptingExecutorService
ACL.impersonate2(Authentication)
for all tasks.SecurityContextExecutorService
Constructor and Description |
---|
ImpersonatingExecutorService(ExecutorService base,
org.springframework.security.core.Authentication authentication)
Creates a wrapper service.
|
ImpersonatingExecutorService(ExecutorService base,
Authentication authentication)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected <V> Callable<V> |
wrap(Callable<V> r) |
protected Runnable |
wrap(Runnable r) |
awaitTermination, delegate, execute, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit, toString
public ImpersonatingExecutorService(ExecutorService base, org.springframework.security.core.Authentication authentication)
base
- the base serviceauthentication
- for example ACL.SYSTEM2
@Deprecated public ImpersonatingExecutorService(ExecutorService base, Authentication authentication)
ImpersonatingExecutorService(ExecutorService, Authentication)
protected Runnable wrap(Runnable r)
wrap
in class InterceptingExecutorService
protected <V> Callable<V> wrap(Callable<V> r)
wrap
in class InterceptingExecutorService
Copyright © 2004–2022. All rights reserved.