Class DelegatingSecurityContextRunnable

  • All Implemented Interfaces:
    java.lang.Runnable

    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.

    Since:
    3.2