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
  • Constructor Details

    • CredentialUsageListener

      public CredentialUsageListener()
  • Method Details

    • onUse

      public void onUse(com.cloudbees.plugins.credentials.Credentials c, Run run)
      Triggered when the CredentialsProvider accesses Credentials.
      Specified by:
      onUse in interface com.cloudbees.plugins.credentials.CredentialsUseListener
      Parameters:
      c - The used Credentials.
      run - The object using the credentials.
      See Also:
      • CredentialsProvider.trackAll(Run, java.util.List)
    • onUse

      public void onUse(com.cloudbees.plugins.credentials.Credentials c, Node node)
      Triggered when the CredentialsProvider accesses Credentials.
      Specified by:
      onUse in interface com.cloudbees.plugins.credentials.CredentialsUseListener
      Parameters:
      c - The used Credentials.
      node - The object using the credentials.
      See Also:
      • CredentialsProvider.trackAll(Node, java.util.List)
    • onUse

      public void onUse(com.cloudbees.plugins.credentials.Credentials c, Item item)
      Triggered when the CredentialsProvider accesses Credentials.
      Specified by:
      onUse in interface com.cloudbees.plugins.credentials.CredentialsUseListener
      Parameters:
      c - The used Credentials.
      item - The object using the credentials.
      See Also:
      • CredentialsProvider.trackAll(Item, java.util.List)