Interface AuthorizationCodeFlow.CredentialCreatedListener
-
- Enclosing class:
- AuthorizationCodeFlow
public static interface AuthorizationCodeFlow.CredentialCreatedListener
Listener for a created credential after a successful token response inAuthorizationCodeFlow.createAndStoreCredential(com.google.api.client.auth.oauth2.TokenResponse, java.lang.String)
.- Since:
- 1.14
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onCredentialCreated(Credential credential, TokenResponse tokenResponse)
Notifies of a created credential after a successful token response inAuthorizationCodeFlow.createAndStoreCredential(com.google.api.client.auth.oauth2.TokenResponse, java.lang.String)
.
-
-
-
Method Detail
-
onCredentialCreated
void onCredentialCreated(Credential credential, TokenResponse tokenResponse) throws java.io.IOException
Notifies of a created credential after a successful token response inAuthorizationCodeFlow.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.
- Parameters:
credential
- created credentialtokenResponse
- successful token response- Throws:
java.io.IOException
-
-