Class DelegatingSecurityContextCallable<V>

  • All Implemented Interfaces:

    public final class DelegatingSecurityContextCallable<V>
    extends java.lang.Object
    implements java.util.concurrent.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.