Builder class to initialize AuthCredential's.
| AuthCredential |
build()
Returns the
AuthCredential
that this
OAuthProvider.CredentialBuilder has constructed.
|
| OAuthProvider.CredentialBuilder | |
| OAuthProvider.CredentialBuilder | |
| OAuthProvider.CredentialBuilder |
setIdTokenWithRawNonce(String idToken,
String
rawNonce)
Adds an ID token and raw nonce to the credential being built.
|
Returns the AuthCredential
that this
OAuthProvider.CredentialBuilder has constructed.
| IllegalArgumentException | if an ID token and access token were not provided. |
|---|
Adds an access token to the credential being built.
Adds an ID token to the credential being built.
If this is an OIDC ID token with a nonce field, please use
setIdTokenWithRawNonce(String, String) instead.
Adds an ID token and raw nonce to the credential being built.
The raw nonce is required when an OIDC ID token with a nonce field is provided. The SHA-256 hash of the raw nonce must match the nonce field in the OIDC ID token.