GetSignInIntentRequest.Builder

public static final class GetSignInIntentRequest.Builder extends Object

Builder class for GetSignInIntentRequest.

Public Constructor Summary

Public Method Summary

GetSignInIntentRequest
GetSignInIntentRequest.Builder
filterByHostedDomain(String hostedDomainFilter)
Sets the hosted domain filter (e.g.
GetSignInIntentRequest.Builder
setNonce(String nonce)
Sets the nonce to use when generating a Google ID token.
GetSignInIntentRequest.Builder
setRequestVerifiedPhoneNumber(boolean requestsVerifiedPhoneNumber)
This method is deprecated. No replacement.
GetSignInIntentRequest.Builder
setServerClientId(String serverClientId)
Sets the client ID of the server that will verify the integrity of the token.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public GetSignInIntentRequest build ()

public GetSignInIntentRequest.Builder filterByHostedDomain (String hostedDomainFilter)

Sets the hosted domain filter (e.g. myuniveristy.edu). Default is no filter.

public GetSignInIntentRequest.Builder setNonce (String nonce)

Sets the nonce to use when generating a Google ID token. The values for nonce can be any random string and is used to prevent replay-attack. Default is no nonce.

Parameters
nonce the nonce to use during ID token generation

public GetSignInIntentRequest.Builder setRequestVerifiedPhoneNumber (boolean requestsVerifiedPhoneNumber)

This method is deprecated.
No replacement.

Sets whether to prompt the users to share a verified phone number associated with their Google accounts.

Note that if the user selects a Google account which has previously been used to sign up to your app, they won't be prompted with the phone number selection.

public GetSignInIntentRequest.Builder setServerClientId (String serverClientId)

Sets the client ID of the server that will verify the integrity of the token. Calling this method to set the serverClientId is required.