Implemented login method for Java.
Implemented Java examples for Ingest.