Class DelegatingSecurityContextCallable<V>

java.lang.Object
org.springframework.security.concurrent.DelegatingSecurityContextCallable<V>
All Implemented Interfaces:
Callable<V>

public final class DelegatingSecurityContextCallable<V> extends Object implements Callable<V>

Wraps a delegate Callable with logic for setting up a SecurityContext before invoking the delegate Callable and then removing the SecurityContext after the delegate has completed.

If there is a SecurityContext that already exists, it will be restored after the call() method is invoked.

Since:
3.2