Usable cryptographic recipes based on Java API