google.com/apis/accounts/docs/OAuth2UserAgent.html">Using OAuth 2.0 for Client-side Applications (Experimental).
The default for {@link #getResponseTypes()} is {@code "token"}.
Sample usage for a web application:
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { String url = new GoogleBrowserClientRequestUrl("812741506391.apps.googleusercontent.com", "https://oauth2-login-demo.appspot.com/oauthcallback", Arrays.asList( "https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/userinfo.profile")).setState("/profile").build(); response.sendRedirect(url); }
Implementation is not thread-safe.
@since 1.7
@author Yaniv Inbar