configName = "security-levels.physicalThreatLevel";
confirm = "security-levels.physicalThreatLevel.confirm";
tryConfirm = "security-levels.physicalThreatLevel.tryConfirm";
String physicalThreatLevel = request.getPartAsStringFailsafe(configName, 128);
PHYSICAL_THREAT_LEVEL newPhysicalLevel = SecurityLevels.parsePhysicalThreatLevel(physicalThreatLevel);
PHYSICAL_THREAT_LEVEL oldPhysicalLevel = core.node.securityLevels.getPhysicalThreatLevel();
if(logMINOR) Logger.minor(this, "New physical threat level: "+newPhysicalLevel+" old = "+node.securityLevels.getPhysicalThreatLevel());
if(newPhysicalLevel != null) {
if(newPhysicalLevel == oldPhysicalLevel && newPhysicalLevel == PHYSICAL_THREAT_LEVEL.HIGH) {
String password = request.getPartAsStringFailsafe("masterPassword", MAX_PASSWORD_LENGTH);
String oldPassword = request.getPartAsStringFailsafe("oldPassword", MAX_PASSWORD_LENGTH);