Class Substitution.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<Substitution>
io.jenkins.plugins.configsplice.Substitution.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
Substitution

@Extension public static class Substitution.DescriptorImpl extends Descriptor<Substitution>
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • getDisplayName

      @NonNull public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<Substitution>
    • doCheckPath

      @POST public FormValidation doCheckPath(@AncestorInPath Item item, @QueryParameter String value)
    • doCheckValue

      @POST public FormValidation doCheckValue(@AncestorInPath Item item, @QueryParameter String value, @QueryParameter String credentialsId)
      Warns when a literal looks like it might be a secret.

      Advisory only. Literal step arguments are persisted and displayed by Pipeline metadata, so a secret placed here is disclosed regardless of what this check says (SRS section 12.3).

    • doFillTypeItems

      @POST public ListBoxModel doFillTypeItems(@AncestorInPath Item item)
    • doFillCredentialsIdItems

      @POST public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item item, @QueryParameter String credentialsId)
      Populates the Secret Text credential picker (SRS section 12.2).

      The permission checks are the point of this method, not the convenience. A caller who may not use credentials in this context gets back only the value already configured, so the dropdown cannot be used to enumerate credential IDs the caller is not entitled to see.

    • doCheckCredentialsId

      @POST public FormValidation doCheckCredentialsId(@AncestorInPath Item item, @QueryParameter String value)
      Confirms the selected credential is resolvable, without revealing anything if it is not.