public class PasswordParameter extends StringParameter
category, key, LOGGER, mappingFunction, value| Constructor and Description |
|---|
PasswordParameter(String key,
String category,
String defaultValue)
Constructor that uses the default mapping function.
|
PasswordParameter(String key,
String category,
String defaultValue,
Function<String,String> customMappingFunction)
Constructor that uses a custom mapping function.
|
| Modifier and Type | Method and Description |
|---|---|
PasswordParameter |
copy()
Creates an unregistered copy of this parameter.
|
String |
getStringValue()
Returns a human readable String of the parameter value.
|
getCategory, getCompositeKey, getKey, getMappingFunction, getValue, isRegistered, loadFromEnvironmentVariables, setMappingFunction, setRegistered, setValue, toStringpublic PasswordParameter(String key, String category, String defaultValue, Function<String,String> customMappingFunction) throws IllegalArgumentException
key - the unique key of the parameter, which is used to change it via RESTcategory - the category of the parameterdefaultValue - the default valuecustomMappingFunction - a function that maps strings to the parameter valuesIllegalArgumentException - thrown if the key contains invalid characterspublic PasswordParameter(String key, String category, String defaultValue)
key - the unique key of the parameter, which is used to change it via RESTcategory - the category of the parameterdefaultValue - the default valuepublic PasswordParameter copy()
AbstractParametercopy in class StringParameterpublic String getStringValue()
AbstractParametergetStringValue in class AbstractParameter<String>Copyright © 2017–2019. All rights reserved.