public class DelegatingSecurityContextExecutor extends Object implements Executor
| Constructor and Description |
|---|
DelegatingSecurityContextExecutor(Executor delegate)
Creates a new
DelegatingSecurityContextExecutor that uses the current SecurityContext from the
SecurityContextHolder at the time the task is submitted. |
DelegatingSecurityContextExecutor(Executor delegateExecutor,
SecurityContext securityContext)
Creates a new
DelegatingSecurityContextExecutor that uses the specified SecurityContext. |
public DelegatingSecurityContextExecutor(Executor delegateExecutor, SecurityContext securityContext)
DelegatingSecurityContextExecutor that uses the specified SecurityContext.delegateExecutor - the Executor to delegate to. Cannot be null.securityContext - the SecurityContext to use for each DelegatingSecurityContextRunnable or
null to default to the current SecurityContextpublic DelegatingSecurityContextExecutor(Executor delegate)
DelegatingSecurityContextExecutor that uses the current SecurityContext from the
SecurityContextHolder at the time the task is submitted.delegate - the Executor to delegate to. Cannot be null.