Package hudson.plugins.audit_trail
Class CredentialUsageListener
java.lang.Object
hudson.plugins.audit_trail.CredentialUsageListener
- All Implemented Interfaces:
com.cloudbees.plugins.credentials.CredentialsUseListener
,ExtensionPoint
@Extension
public class CredentialUsageListener
extends Object
implements com.cloudbees.plugins.credentials.CredentialsUseListener
Log when credentials are used. Only works if the job decides to access the credentials via the
CredentialsProvider
. Credential-types that do not extend
Credentials
- Author:
- Jan Meiswinkel
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Triggered when theCredentialsProvider
accessesCredentials
.void
Triggered when theCredentialsProvider
accessesCredentials
.void
Triggered when theCredentialsProvider
accessesCredentials
.
-
Constructor Details
-
CredentialUsageListener
public CredentialUsageListener()
-
-
Method Details
-
onUse
Triggered when theCredentialsProvider
accessesCredentials
.- Specified by:
onUse
in interfacecom.cloudbees.plugins.credentials.CredentialsUseListener
- Parameters:
c
- The used Credentials.run
- The object using the credentials.- See Also:
-
CredentialsProvider.trackAll(Run, java.util.List)
-
onUse
Triggered when theCredentialsProvider
accessesCredentials
.- Specified by:
onUse
in interfacecom.cloudbees.plugins.credentials.CredentialsUseListener
- Parameters:
c
- The used Credentials.node
- The object using the credentials.- See Also:
-
CredentialsProvider.trackAll(Node, java.util.List)
-
onUse
Triggered when theCredentialsProvider
accessesCredentials
.- Specified by:
onUse
in interfacecom.cloudbees.plugins.credentials.CredentialsUseListener
- Parameters:
c
- The used Credentials.item
- The object using the credentials.- See Also:
-
CredentialsProvider.trackAll(Item, java.util.List)
-