Class TriggerCredentialsImpl

java.lang.Object
com.cloudbees.plugins.credentials.BaseCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
org.jenkinsci.plugins.buildtokentrigger.TriggerCredentialsImpl
All Implemented Interfaces:
com.cloudbees.plugins.credentials.common.IdCredentials, com.cloudbees.plugins.credentials.common.PasswordCredentials, com.cloudbees.plugins.credentials.common.StandardCredentials, com.cloudbees.plugins.credentials.Credentials, ExtensionPoint, Describable<com.cloudbees.plugins.credentials.Credentials>, Serializable, TriggerCredentials

public class TriggerCredentialsImpl extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials implements TriggerCredentials
Default implementation of TriggerCredentials.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 

    Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials

    com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptor

    Nested classes/interfaces inherited from interface hudson.ExtensionPoint

    ExtensionPoint.LegacyInstancesAreScopedToHudson

    Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials

    com.cloudbees.plugins.credentials.common.IdCredentials.Helpers

    Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials

    com.cloudbees.plugins.credentials.common.StandardCredentials.NameProvider

    Nested classes/interfaces inherited from interface org.jenkinsci.plugins.buildtokentrigger.TriggerCredentials

    TriggerCredentials.NameProvider
  • Constructor Summary

    Constructors
    Constructor
    Description
    TriggerCredentialsImpl(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, String jenkinsUrl, String password)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the root url of the Jenkins instance that these trigger credentials are for.
     
    static String
    Fix an url.

    Methods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials

    equals, getDescription, getId, hashCode

    Methods inherited from class com.cloudbees.plugins.credentials.BaseCredentials

    getDescriptor, getScope

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.cloudbees.plugins.credentials.Credentials

    forRun, getDescriptor, getScope

    Methods inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials

    getId

    Methods inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials

    getDescription
  • Constructor Details

    • TriggerCredentialsImpl

      @DataBoundConstructor public TriggerCredentialsImpl(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, String jenkinsUrl, String password)
  • Method Details

    • normalizeUrl

      @NonNull public static String normalizeUrl(@CheckForNull String url)
      Fix an url.
      Parameters:
      url - the jenkins URL.
      Returns:
      the normalized jenkins URL.
    • getJenkinsUrl

      @NonNull public String getJenkinsUrl()
      Description copied from interface: TriggerCredentials
      Returns the root url of the Jenkins instance that these trigger credentials are for.
      Specified by:
      getJenkinsUrl in interface TriggerCredentials
      Returns:
      the root url of the Jenkins instance that these trigger credentials are for.
    • getPassword

      @NonNull public Secret getPassword()
      Specified by:
      getPassword in interface com.cloudbees.plugins.credentials.common.PasswordCredentials