Enable SSL.
Follow the instructions in To Configure SSL for Java API Samples.
Compile and execute the sample code.
See To Compile and Execute the Java API Samples