if(password == null) {
_logger.severe(sm.getString("enterprise.tools.upgrade.cli.password_error",jksPwdFile));
System.exit(1);
}
commonInfo.setJksKeystorePassword(password);
String jksPath="";
if(commonInfo.isUpgradeNSStoJKS()){
if(!interactiveMap.containsKey("target"))
return;
jksPath=commonInfo.getTargetJKSKeyStorePath();
} else {
if(!interactiveMap.containsKey("source"))
return;
jksPath=commonInfo.getSourceJKSKeyStorePath();
}
boolean validpwd = PasswordVerifier.verifyKeystorePassword(jksPath,password);
if(!validpwd) {
commonInfo.recover();
_logger.severe(sm.getString("enterprise.tools.upgrade.cli.Invalid_jks_keypair_password"));
System.exit(1);
}
interactiveMap.put(ArgsParser.JKSPWD + "-" + commonInfo.getCurrentDomain(), jksPwdFile);