AuthorizationRequest

public class AuthorizationRequest extends Object
implements Parcelable Parcelable

Parameters that configure the authorization request.

Nested Class Summary

class AuthorizationRequest.Builder Builder for AuthorizationRequest

Inherited Constant Summary

Field Summary

public static final Creator<AuthorizationRequest> CREATOR

Public Method Summary

static AuthorizationRequest.Builder
boolean
Account
getAccount()
Returns the account that should be used.
String
getHostedDomain()
Returns the hosted domain restriction for accounts.
List<Scope>
getRequestedScopes()
Returns list of OAuth 2.0 scopes that the application is requesting.
String
getServerClientId()
Returns the requested audience for the ID token that is returned, or client ID of the server that will need the auth code.
int
boolean
isForceCodeForRefreshToken()
Returns true if the granted code should be exchanged for an access token and a refresh token.
boolean
isOfflineAccessRequested()
Returns true if offline access is requested.
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<AuthorizationRequest> CREATOR

Public Methods

public static AuthorizationRequest.Builder builder ()

public boolean equals (Object o)

public Account getAccount ()

Returns the account that should be used.

public String getHostedDomain ()

Returns the hosted domain restriction for accounts.

public List<Scope> getRequestedScopes ()

Returns list of OAuth 2.0 scopes that the application is requesting.

public String getServerClientId ()

Returns the requested audience for the ID token that is returned, or client ID of the server that will need the auth code.

public int hashCode ()

public boolean isForceCodeForRefreshToken ()

Returns true if the granted code should be exchanged for an access token and a refresh token.

public boolean isOfflineAccessRequested ()

Returns true if offline access is requested.

public void writeToParcel (Parcel dest, int flags)