AuthorizationRequest

public classAuthorizationRequestextendsObject
implementsParcelableParcelable

Parameters that configure the authorization request.

Nested Class Summary

class AuthorizationRequest.Builder Builder for AuthorizationRequest.
enum AuthorizationRequest.ResourceParameter An enumeration of available resource parameters.

Inherited Constant Summary

Field Summary

public static finalCreator<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
getResourceParameter(AuthorizationRequest.ResourceParameter resourceParameter)
Returns the value for the givenresourceParameter.
Bundle
getResourceParameters()
Returns aBundleof resource parameters that will be set in the request.
String
getResourceParameter(AuthorizationRequest.ResourceParameter resourceParameter)
Returns the value for the givenresourceParameter.
Bundle
getResourceParameters()
Returns aBundleof resource parameters that will be set in the request.
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()
Returnstrueif the granted code should be exchanged for an access token and a refresh token.
boolean
isOfflineAccessRequested()
Returnstrueif offline access is requested.
void
writeToParcel(Parceldest, int flags)

Inherited Method Summary

Fields

public static finalCreator<AuthorizationRequest> CREATOR

Public Methods

public static AuthorizationRequest.Builderbuilder()

public booleanequals(Objecto)

publicAccount getAccount()

Returns the account that should be used.

publicStringgetHostedDomain()

Returns the hosted domain restriction for accounts.

publicList<Scope> getRequestedScopes()

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

publicStringgetResourceParameter(AuthorizationRequest.ResourceParameter resourceParameter)

Returns the value for the givenresourceParameter.If no such parameter was set, it returnsnull.

publicBundlegetResourceParameters()

Returns aBundleof resource parameters that will be set in the request.

publicStringgetResourceParameter(AuthorizationRequest.ResourceParameter resourceParameter)

Returns the value for the givenresourceParameter.If no such parameter was set, it returnsnull.

publicBundlegetResourceParameters()

Returns aBundleof resource parameters that will be set in the request.

publicStringgetServerClientId()

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

public inthashCode()

public booleanisForceCodeForRefreshToken()

Returnstrueif the granted code should be exchanged for an access token and a refresh token.

public booleanisOfflineAccessRequested()

Returnstrueif offline access is requested.

public voidwriteToParcel(Parceldest, int flags)