Summary: Inherited Constants | Methods | Inherited Methods | [Expand All]
public class

# GoogleNowAuthState

extends Object
implements SafeParcelable

java.lang.Object
↳ | com.google.android.gms.search.GoogleNowAuthState

## Class Overview

Output of `getGoogleNowAuth(com.google.android.gms.common.api.GoogleApiClient, String)`.

## Summary

[Expand] Inherited Constants
From interface com.google.android.gms.common.internal.safeparcel.SafeParcelable
String | NULL |
From interface android.os.Parcelable
int | CONTENTS_FILE_DESCRIPTOR |
int | PARCELABLE_WRITE_RETURN_VALUE |

Public Methods
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 | toString()

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()
From interface android.os.Parcelable
abstract int | describeContents()
abstract void | writeToParcel(Parcel arg0, int arg1)

## 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 ()