Package jenkins.security.s2m
Class CallableDirectionChecker
java.lang.Object
org.jenkinsci.remoting.RoleChecker
jenkins.security.s2m.CallableDirectionChecker
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class CallableDirectionChecker
extends org.jenkinsci.remoting.RoleChecker
Inspects
Callable
s that run on the controller.- Since:
- 1.587 / 1.580.1
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
InstallsCallableDirectionChecker
to every channel. -
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
Switch to disable all the defense mechanism completely. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
check
(org.jenkinsci.remoting.RoleSensitive subject, Collection<org.jenkinsci.remoting.Role> expected) Methods inherited from class org.jenkinsci.remoting.RoleChecker
check, check
-
Field Details
-
BYPASS
public static boolean BYPASSSwitch 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 Details
-
CallableDirectionChecker
public CallableDirectionChecker()
-
-
Method Details
-
check
public void check(org.jenkinsci.remoting.RoleSensitive subject, @NonNull Collection<org.jenkinsci.remoting.Role> expected) throws SecurityException - Specified by:
check
in classorg.jenkinsci.remoting.RoleChecker
- Throws:
SecurityException
-