Class SecurityContext

java.lang.Object
org.opencastproject.security.util.SecurityContext

public class SecurityContext extends Object
This class handles all the boilerplate of setting up and tearing down a security context. It also makes it possible to pass around contexts so that clients need not deal with services, users, passwords etc.
  • Constructor Details

  • Method Details

    • runInContext

      public <A> A runInContext(Supplier<A> f)
      Run function f within the context.
    • runInContext

      public void runInContext(Runnable f)
      Run function f within the context.