Package jenkins.security.stapler
Class StaticRoutingDecisionProvider
java.lang.Object
jenkins.security.stapler.RoutingDecisionProvider
jenkins.security.stapler.StaticRoutingDecisionProvider
- All Implemented Interfaces:
ExtensionPoint
,Saveable
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
@Extension
public class StaticRoutingDecisionProvider
extends RoutingDecisionProvider
implements Saveable
Fill the list of getter methods that are whitelisted for Stapler
Each item in the set are formatted to correspond exactly to what
Function.getDisplayName()
returns-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddBlacklistSignature
(String signature) jenkins.security.stapler.RoutingDecisionProvider.Decision
get()
Return the singleton instance of this class, typically for script console usevoid
reload()
removeBlacklistSignature
(String signature) void
save()
Saves the configuration info to the disk.
-
Field Details
-
WHITELIST_PATH
Allow script console access
-
-
Constructor Details
-
StaticRoutingDecisionProvider
public StaticRoutingDecisionProvider()
-
-
Method Details
-
get
Return the singleton instance of this class, typically for script console use -
decide
@NonNull public jenkins.security.stapler.RoutingDecisionProvider.Decision decide(@NonNull String signature) - Specified by:
decide
in classRoutingDecisionProvider
- See Also:
-
Function.getSignature()
FieldRef.getSignature()
-
reload
public void reload() -
add
-
addBlacklistSignature
-
remove
-
removeBlacklistSignature
-
save
public void save()Saves the configuration info to the disk.
-