public class UpdatingClientCredentialsState extends Object implements org.mule.runtime.extension.api.connectivity.oauth.ClientCredentialsState
ClientCredentialsState which registers an ClientCredentialsListener in order to get
updated state when a refresh token operation is completed.| Constructor and Description |
|---|
UpdatingClientCredentialsState(ClientCredentialsOAuthDancer dancer,
ResourceOwnerOAuthContext initialContext,
Consumer<ResourceOwnerOAuthContext> onUpdate) |
| Modifier and Type | Method and Description |
|---|---|
void |
deregisterListener() |
String |
getAccessToken() |
Optional<String> |
getExpiresIn() |
public UpdatingClientCredentialsState(ClientCredentialsOAuthDancer dancer, ResourceOwnerOAuthContext initialContext, Consumer<ResourceOwnerOAuthContext> onUpdate)
public String getAccessToken()
getAccessToken in interface org.mule.sdk.api.connectivity.oauth.OAuthStatepublic Optional<String> getExpiresIn()
getExpiresIn in interface org.mule.sdk.api.connectivity.oauth.OAuthStatepublic void deregisterListener()
Copyright © 2003–2024 MuleSoft, Inc.. All rights reserved.