Example of using secret key for Java.