errCause += " (DSA signature is invalid)";
if(failed)
errCause += " (VERIFICATION FAILED)";
Logger.error(this, "The integrity of the reference has been compromised!" + errCause + " fs was\n" + fs.toOrderedString());
this.isSignatureVerificationSuccessfull = false;
throw new ReferenceSignatureVerificationException("The integrity of the reference has been compromised!" + errCause);
} else {
this.isSignatureVerificationSuccessfull = true;
if(!dontKeepFullFieldSet())
this.fullFieldSet = fs;
}
} catch(NumberFormatException e) {
Logger.error(this, "Invalid reference: " + e, e);
throw new ReferenceSignatureVerificationException("The node reference you added is invalid: It does not have a valid DSA signature.");
} catch(IllegalBase64Exception e) {
Logger.error(this, "Invalid reference: " + e, e);
throw new ReferenceSignatureVerificationException("The node reference you added is invalid: It does not have a valid ECDSA signature.");
} catch(UnsupportedEncodingException e) {
throw new Error("Impossible: JVM doesn't support UTF-8: " + e, e);
}
return !failed;
}