Class ACLContext

java.lang.Object
hudson.security.ACLContext
All Implemented Interfaces:
AutoCloseable

public class ACLContext extends Object implements AutoCloseable
A AutoCloseable that captures the previous SecurityContext and restores it on close()
Since:
2.14
  • Method Details

    • getPreviousContext2

      @NonNull public org.springframework.security.core.context.SecurityContext getPreviousContext2()
      Accessor for the previous context.
      Returns:
      the previous context.
      Since:
      2.266
    • getPreviousContext

      @Deprecated public SecurityContext getPreviousContext()
      Deprecated.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable