Class DelegatingSecurityContextTaskExecutor
java.lang.Object
org.springframework.security.concurrent.DelegatingSecurityContextExecutor
org.springframework.security.task.DelegatingSecurityContextTaskExecutor
- All Implemented Interfaces:
Executor
,org.springframework.core.task.TaskExecutor
- Direct Known Subclasses:
DelegatingSecurityContextAsyncTaskExecutor
public class DelegatingSecurityContextTaskExecutor
extends DelegatingSecurityContextExecutor
implements org.springframework.core.task.TaskExecutor
- Since:
- 3.2
-
Constructor Summary
ConstructorDescriptionDelegatingSecurityContextTaskExecutor
(org.springframework.core.task.TaskExecutor delegate) Creates a newDelegatingSecurityContextTaskExecutor
that uses the currentSecurityContext
from theSecurityContextHolder
.DelegatingSecurityContextTaskExecutor
(org.springframework.core.task.TaskExecutor delegateTaskExecutor, SecurityContext securityContext) Creates a newDelegatingSecurityContextTaskExecutor
that uses the specifiedSecurityContext
. -
Method Summary
Methods inherited from class org.springframework.security.concurrent.DelegatingSecurityContextExecutor
execute, getDelegateExecutor, setSecurityContextHolderStrategy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.core.task.TaskExecutor
execute
-
Constructor Details
-
DelegatingSecurityContextTaskExecutor
public DelegatingSecurityContextTaskExecutor(org.springframework.core.task.TaskExecutor delegateTaskExecutor, SecurityContext securityContext) Creates a newDelegatingSecurityContextTaskExecutor
that uses the specifiedSecurityContext
.- Parameters:
delegateTaskExecutor
- theTaskExecutor
to delegate to. Cannot be null.securityContext
- theSecurityContext
to use for eachDelegatingSecurityContextRunnable
-
DelegatingSecurityContextTaskExecutor
public DelegatingSecurityContextTaskExecutor(org.springframework.core.task.TaskExecutor delegate) Creates a newDelegatingSecurityContextTaskExecutor
that uses the currentSecurityContext
from theSecurityContextHolder
.- Parameters:
delegate
- theTaskExecutor
to delegate to. Cannot be null.
-
-
Method Details
-
wrap
-
wrap
-