public class PasswordParameterDefinition extends SimpleParameterDefinition
Secret
and is hidden from the UI.Modifier and Type | Class and Description |
---|---|
static class |
PasswordParameterDefinition.ParameterDescriptorImpl |
ParameterDefinition.ParameterDescriptor
ExtensionPoint.LegacyInstancesAreScopedToHudson
LIST
Constructor and Description |
---|
PasswordParameterDefinition(String name,
String defaultValue,
String description) |
Modifier and Type | Method and Description |
---|---|
ParameterDefinition |
copyWithDefaultValue(ParameterValue defaultValue)
Create a new instance of this parameter definition and use the passed
parameter value as the default value.
|
PasswordParameterValue |
createValue(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject jo)
Create a parameter value from a form submission.
|
ParameterValue |
createValue(String value)
Creates a
ParameterValue from the string representation. |
ParameterValue |
getDefaultParameterValue()
Returns default parameter value for this definition.
|
String |
getDefaultValue() |
Secret |
getDefaultValueAsSecret() |
void |
setDefaultValue(String defaultValue) |
createValue, createValue
all, getDescription, getDescriptor, getFormattedDescription, getName, getType
public ParameterDefinition copyWithDefaultValue(ParameterValue defaultValue)
ParameterDefinition
copyWithDefaultValue
in class ParameterDefinition
public ParameterValue createValue(String value)
SimpleParameterDefinition
ParameterValue
from the string representation.createValue
in class SimpleParameterDefinition
public PasswordParameterValue createValue(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject jo)
ParameterDefinition
This method is invoked when the user fills in the parameter values in the HTML form and submits it to the server.
createValue
in class ParameterDefinition
public ParameterValue getDefaultParameterValue()
ParameterDefinition
getDefaultParameterValue
in class ParameterDefinition
public String getDefaultValue()
@Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) public Secret getDefaultValueAsSecret()
public void setDefaultValue(String defaultValue)
Copyright © 2017. All rights reserved.