Class CallableDirectionChecker


  • @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
    public class CallableDirectionChecker
    extends org.jenkinsci.remoting.RoleChecker
    Inspects Callables that run on the controller.
    Since:
    1.587 / 1.580.1
    Author:
    Kohsuke Kawaguchi
    • Field Detail

      • BYPASS

        public static boolean BYPASS
        Switch to disable all the defense mechanism completely. This is an escape hatch in case the fix breaks something critical, to allow the user to keep operation.
    • Constructor Detail

      • CallableDirectionChecker

        public CallableDirectionChecker()
    • Method Detail

      • check

        public void check​(org.jenkinsci.remoting.RoleSensitive subject,
                          @NonNull
                          Collection<org.jenkinsci.remoting.Role> expected)
                   throws SecurityException
        Specified by:
        check in class org.jenkinsci.remoting.RoleChecker
        Throws:
        SecurityException