I wonder if there might be another useful step here: store the digest of the bytes in a .class file in the compiled object file. It would make the system more robust against active attacks and also simple mistakes. Andrew.