if(password == null) {
_logger.severe(sm.getString("enterprise.tools.upgrade.cli.password_error",jkscaPwdFile));
System.exit(1);
}
commonInfo.setJksCAKeystorePassword(password);
String trustJksPath="";
if(commonInfo.isUpgradeNSStoJKS()){
if(!interactiveMap.containsKey(ArgsParser.TARGET))
return;
trustJksPath = commonInfo.getTargetTrustedJKSKeyStorePath();
} else {
if(!interactiveMap.containsKey(ArgsParser.SOURCE))
return;
trustJksPath = commonInfo.getSourceTrustedJKSKeyStorePath();
}
boolean validpwd = PasswordVerifier.verifyKeystorePassword(trustJksPath,password );
if(!validpwd) {
commonInfo.recover();
_logger.severe(sm.getString("enterprise.tools.upgrade.cli.Invalid_jks_CA_password"));
System.exit(1);
}
interactiveMap.put(ArgsParser.CAPWD + "-" + commonInfo.getCurrentDomain(), jkscaPwdFile);