Interface AuthorizationCodeFlow.CredentialCreatedListener
- Enclosing class:
AuthorizationCodeFlow
public static interface AuthorizationCodeFlow.CredentialCreatedListener
Listener for a created credential after a successful token response in
AuthorizationCodeFlow.createAndStoreCredential(com.google.api.client.auth.oauth2.TokenResponse, java.lang.String)
.- Since:
- 1.14
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
onCredentialCreated
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:
IOException
-