Package io.jenkins.plugins.configsplice
Class Substitution.DescriptorImpl
- Enclosing class:
Substitution
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCheckCredentialsId(Item item, String value) Confirms the selected credential is resolvable, without revealing anything if it is not.doCheckPath(Item item, String value) doCheckValue(Item item, String value, String credentialsId) Warns when a literal looks like it might be a secret.doFillCredentialsIdItems(Item item, String credentialsId) Populates the Secret Text credential picker (SRS section 12.2).doFillTypeItems(Item item) Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<Substitution>
-
doCheckPath
-
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
-
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.
-