/** Determines the file name from md5sum. */ private static File getFingerprintFile(byte[] md5sum) { assert md5sum.length == 16; return new File( Jenkins.getInstance().getRootDir(), "fingerprints/" + Util.toHexString(md5sum, 0, 1) + '/' + Util.toHexString(md5sum, 1, 1) + '/' + Util.toHexString(md5sum, 2, md5sum.length - 2) + ".xml"); }
/** Gets the MD5 hash string. */ @Exported(name = "hash") public String getHashString() { return Util.toHexString(md5sum); }