Class ApprovalListener
java.lang.Object
org.jenkinsci.plugins.scriptsecurity.scripts.ApprovalListener
- All Implemented Interfaces:
ExtensionPoint
Receives notifications on approval-related events.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidonApproved(String hash) Called when a script is approved.voidonApprovedClasspathEntry(String hash, URL url) Called when a classpath entry is approved.
-
Constructor Details
-
ApprovalListener
public ApprovalListener()
-
-
Method Details
-
onApproved
Called when a script is approved.- Parameters:
hash- an opaque token as inUnapprovedUsageException.getHash()
-
onApprovedClasspathEntry
Called when a classpath entry is approved.- Parameters:
hash- an opaque token as inUnapprovedClasspathException.getHash()url- its location
-