How to use Google implementation of OAuth 2.0 protocol to Access its APIs, Google Latitude example

This blog is about using the Google implementation of OAuth 2.0 authentication protocol using Java in JSF environment. Google refers to this process as Web server flow authentication. We will use Google Latitude as an example.