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
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
onApproved
(String hash) Called when a script is approved.void
onApprovedClasspathEntry
(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
-