com.google.api.client.auth.oauth2

Home
Java Source Code / Java Documentation 2
1.2D
2.3D
3.Ajax
4.Algebra
5.App Engine
6.Aspect
7.Assemble
8.Cache
9.Cassandra
10.Chat
11.Cloud
12.CMS
13.CouchDB
14.Crypt
15.Database
16.Distributed
17.Eclipse
18.Facebook
19.File
20.Forum
21.GAE
22.Game
23.Google tech
24.Graph
25.Graphic
26.GWT
27.Hibernate
28.HTML
29.HTTP
30.Image
31.IntelliJ
32.IRC
33.J2EE
34.J2ME
35.JDBC
36.JPA
37.JSON
38.JSR
39.JUnit
40.JVM
41.Language
42.Linux
43.Math
44.Maven
45.Media
46.Messenger
47.MiddleWare
48.Mobile
49.Mock
50.MongoDB
51.Mp3
52.Music
53.MVC
54.Network
55.OpenID
56.OSGi
57.Parse
58.Persist
59.Petri
60.Phone
61.Physics
62.REST
63.Robot
64.RPC
65.RSS
66.Ruby
67.Script
68.Search
69.Spring
70.SQL
71.SSH
72.Sudoku
73.Swing
74.Tapestry
75.Test
76.Text
77.Torrent
78.Twitter
79.UML
80.UnTagged
81.Utilities
82.Web
83.Wiki
84.XML
Java Source Code / Java Documentation 2 » Google tech » google api java client » com.google.api.client.auth.oauth2 
com.google.api.client.auth.oauth2
OAuth 2.0 authorization as specified in The OAuth 2.0 Protocol (draft-ietf-oauth-v2-10) (see detailed package specification).

Before using this library, you may need to register your application with the authorization server to receive a client ID and client secret.

Typical steps for the OAuth 2 authorization flow:

  • Redirect end user in the browser to the authorization page using com.google.api.client.auth.oauth2.AuthorizationRequestUrl to grant your application access to their protected data.
  • Process the authorization response using com.google.api.client.auth.oauth2.AuthorizationResponse to parse the authorization code and/or access token.
  • Request an access token, depending on the access grant type:
    • Authorization code: com.google.api.client.auth.oauth2.AccessTokenRequest.AuthorizationCodeGrant
    • Resource Owner Password Credentials: com.google.api.client.auth.oauth2.AccessTokenRequest.ResourceOwnerPasswordCredentialsGrant
    • Assertion: com.google.api.client.auth.oauth2.AccessTokenRequest.AssertionGrant
    • Refresh Token: com.google.api.client.auth.oauth2.AccessTokenRequest.RefreshTokenGrant
    • None (e.g.
Java Source File NameTypeComment
AccessProtectedResource.javaClass OAuth 2.0 methods for specifying the access token parameter as specified in Accessing a Protected Resource.
AccessTokenErrorResponse.javaClass OAuth 2.0 access token error response as specified in Error Response.
AccessTokenRequest.javaClass OAuth 2.0 request for an access token as specified in Obtaining an Access Token.

This class may be used directly when no access grant is included, such as when the client is requesting access to the protected resources under its control.

AccessTokenResponse.javaClass OAuth 2.0 access token success response content as specified in Access Token Response.
AuthorizationRequestUrl.javaClass OAuth 2.0 URL builder for an authorization web page to allow the end user to authorize the application to access their protected resources as specified in Obtaining End-User Authorization.
AuthorizationResponse.javaClass OAuth 2.0 parser for the redirect URL after end user grants or denies authorization as specified in Authorization Response.
package-info.java
w_w_w___.__j___a__v_a___2___s__._c__o_m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.