@NoImplement
public interface ResourceOwnerOAuthContext
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_RESOURCE_OWNER_ID |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken() |
DancerState |
getDancerState() |
String |
getExpiresIn() |
Lock |
getRefreshOAuthContextLock(String lockNamePrefix,
org.mule.runtime.api.lock.LockFactory lockFactory)
Obtains a lock to avoid triggering a refresh of the context more than once simultaneously.
|
String |
getRefreshToken() |
String |
getResourceOwnerId() |
String |
getState() |
Map<String,Object> |
getTokenResponseParameters() |
boolean |
isTokenInvalid()
Checks the status of a token.
|
void |
markTokenAsInvalid()
Updates the token's status to invalid.
|
void |
setDancerState(DancerState dancerState)
Updates the state of the dancer for this context.
|
static final String DEFAULT_RESOURCE_OWNER_ID
String getAccessToken()
String getRefreshToken()
String getState()
String getExpiresIn()
Map<String,Object> getTokenResponseParameters()
String getResourceOwnerId()
DancerState getDancerState()
void setDancerState(DancerState dancerState)
Note that calling this just updates the internal state of this object. Calling this method does not persist this change in any store. That has to be done explicitly after calling this method.
dancerState - the state of the dance for the resource owner of this context.Lock getRefreshOAuthContextLock(String lockNamePrefix, org.mule.runtime.api.lock.LockFactory lockFactory)
lockNamePrefix - a prefix to uniquely identify the locks in the provided lockFactory.lockFactory - the object to get the locks from. This will ensure that the same lock instance is used after
serialization/deserialization of this context.boolean isTokenInvalid()
void markTokenAsInvalid()
Copyright © 2024. All rights reserved.