Read the secret file with Java 6 API