Class DelegatingSecurityContextRunnable

  • All Implemented Interfaces:

    public final class DelegatingSecurityContextRunnable
    extends java.lang.Object
    implements java.lang.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.