File key = new File(keyFile);
if(!key.isFile()){
//not allowed only for session with credentials
if(credTo != 0)
throw new KeyNotFoundException(unique, report, "The key for " + unique + " was not found");
//keyFile = Main.nokeyfile;
}
String credA = "";
while(credFrom > credTo){