Class DelegatingSecurityContextRunnable

java.lang.Object
org.springframework.security.concurrent.DelegatingSecurityContextRunnable
All Implemented Interfaces:
Runnable

public final class DelegatingSecurityContextRunnable extends Object implements Runnable

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

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

Since:
3.2