/**
*
*/
package mil.nga.giat.geowave.core.cli.converters;
/**
* Extends the password converter class to force required=false
*
* This class will allow support for user's passing in passwords through a
* variety of ways. Current supported options for passwords include standard
* password input (pass), an environment variable (env), a file containing the
* password text (file), a properties file containing the password associated
* with a specific key (propfile), and the user being prompted to enter the
* password at command line (stdin). <br/>
* <br/>
* Required notation for specifying varying inputs are:
* <ul>
* <li><b>pass</b>:<password></li>
* <li><b>env</b>:<variable containing the password></li>
* <li><b>file</b>:<local file containing the password></li>
* <li><b>propfile</b>:<local properties file containing the
* password><b>:</b><property file key></li>
* <li><b>stdin</b></li>
* </ul>
*/
public class OptionalPasswordConverter extends
PasswordConverter
{
public OptionalPasswordConverter(
String optionName ) {
super(
optionName);
}
@Override
public String convert(
String value ) {
return super.convert(value);
}
@Override
public boolean isPassword() {
return true;
}
@Override
public boolean isRequired() {
return false;
}
}