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, getDelegateExecutorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutepublic 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 DelegatingSecurityContextRunnablepublic DelegatingSecurityContextTaskExecutor(TaskExecutor delegate)
DelegatingSecurityContextTaskExecutor that uses the current SecurityContext from
 the SecurityContextHolder.delegateTaskExecutor - the TaskExecutor to delegate to. Cannot be null.