A data tampering countermeasure framework for Java