FingerPrintClass provides hashes of Java classes. It computes the hash over the specified class and its superclasses. For a more extensive hash that include fingerprints of all classes referenced by this class as parameter or return types use the computeTotal methods.
package java.lang;
public class FingerPrintClass
extends Object
{
public static byte[] compute(String classname);
public static byte[] compute(Class cl);
public static byte[] computeTotal(String classname);
public static byte[] computeTotal(Class cl);
}
The compute methods returns the fingerprint of the class consisting of the hash of its interfaces, methods, and fields and those of all supertypes. The class can be specified as a Class object or by name.The
computeTotal methods fingerprint the class as above but include in the hash the hashes of all classes that appear as parameter or return types.