public class DelegatingSecurityContextTaskExecutor extends DelegatingSecurityContextExecutor implements TaskExecutor
Constructor and Description |
---|
DelegatingSecurityContextTaskExecutor(TaskExecutor delegate)
Creates a new
DelegatingSecurityContextTaskExecutor that uses the current
SecurityContext from the SecurityContextHolder . |
DelegatingSecurityContextTaskExecutor(TaskExecutor delegateTaskExecutor,
SecurityContext securityContext)
Creates a new
DelegatingSecurityContextTaskExecutor that uses the specified
SecurityContext . |
Modifier and Type | Method and Description |
---|---|
protected <T> Callable<T> |
wrap(Callable<T> delegate) |
protected Runnable |
wrap(Runnable delegate) |
execute, getDelegateExecutor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
public DelegatingSecurityContextTaskExecutor(TaskExecutor delegateTaskExecutor, SecurityContext securityContext)
DelegatingSecurityContextTaskExecutor
that uses the specified
SecurityContext
.delegateTaskExecutor
- the TaskExecutor
to delegate to. Cannot be
null.securityContext
- the SecurityContext
to use for each
DelegatingSecurityContextRunnable
public DelegatingSecurityContextTaskExecutor(TaskExecutor delegate)
DelegatingSecurityContextTaskExecutor
that uses the current
SecurityContext
from the SecurityContextHolder
.delegateTaskExecutor
- the TaskExecutor
to delegate to. Cannot be
null.