GoogleNowAuthState

public class GoogleNowAuthState extends Object
implements Parcelable

Inherited Constant Summary

Public Method Summary

String
getAccessToken()
Returns the OAuth access token or null if access token is unavailable.
String
getAuthCode()
Returns the OAuth authorization code or null if authorization code is unavailable.
long
getNextAllowedTimeMillis()
If the request was rejected by the throttler then the next allowed request wall time (milliseconds since epoch) is returned.
String

Inherited Method Summary

Public Methods

public String getAccessToken ()

Returns the OAuth access token or null if access token is unavailable.

Access token is made available instead of auth code when an authorization code was already issued for the web app client ID. This access token may be used with the Now API or it can be revoked to subsequently obtain a new auth code.

public String getAuthCode ()

Returns the OAuth authorization code or null if authorization code is unavailable.

The authorization code may be sent to the web application where it can be sent along with the client secret to the Google OAuth server to obtain a pair of refresh and access tokens. For details see Cross-client Identity.

If an authorization code was already issued for the web app client ID then an authorization code will not be available and an access token will be made available instead. See getAccessToken().

public long getNextAllowedTimeMillis ()

If the request was rejected by the throttler then the next allowed request wall time (milliseconds since epoch) is returned.

public String toString ()