public static interface AuthorizationCodeFlow.CredentialCreatedListener
AuthorizationCodeFlow.createAndStoreCredential(com.google.api.client.auth.oauth2.TokenResponse, java.lang.String)
.Modifier and Type | Method and Description |
---|---|
void |
onCredentialCreated(Credential credential,
TokenResponse tokenResponse)
Notifies of a created credential after a successful token response in
AuthorizationCodeFlow.createAndStoreCredential(com.google.api.client.auth.oauth2.TokenResponse, java.lang.String) . |
void onCredentialCreated(Credential credential, TokenResponse tokenResponse) throws IOException
AuthorizationCodeFlow.createAndStoreCredential(com.google.api.client.auth.oauth2.TokenResponse, java.lang.String)
.
Typical use is to parse additional fields from the credential created, such as an ID token.
credential
- created credentialtokenResponse
- successful token responseIOException
Copyright © 2011–2021 Google. All rights reserved.