public class DelegatingSecurityRunnableextends Object
implements Runnable
Wraps a delegate Runnable with logic for setting up an 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.