ResourceOwnerOAuthContextWithRefreshState instead.@Deprecated public final class DefaultResourceOwnerOAuthContext extends Object implements ResourceOwnerOAuthContext, Serializable
DEFAULT_RESOURCE_OWNER_ID| Constructor and Description |
|---|
DefaultResourceOwnerOAuthContext(Lock refreshUserOAuthContextLock,
String resourceOwnerId)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken()
Deprecated.
|
DancerState |
getDancerState()
Deprecated.
|
String |
getExpiresIn()
Deprecated.
|
Lock |
getRefreshOAuthContextLock(String lockNamePrefix,
org.mule.runtime.api.lock.LockFactory lockFactory)
Deprecated.
Obtains a lock to avoid triggering a refresh of the context more than once simultaneously.
|
String |
getRefreshToken()
Deprecated.
|
Lock |
getRefreshUserOAuthContextLock()
Deprecated.
|
String |
getResourceOwnerId()
Deprecated.
|
String |
getState()
Deprecated.
|
Map<String,Object> |
getTokenResponseParameters()
Deprecated.
|
void |
setAccessToken(String accessToken)
Deprecated.
|
void |
setDancerState(DancerState dancerState)
Deprecated.
Updates the state of the dancer for this context.
|
void |
setExpiresIn(String expiresIn)
Deprecated.
|
void |
setRefreshToken(String refreshToken)
Deprecated.
|
void |
setRefreshUserOAuthContextLock(Lock refreshUserOAuthContextLock)
Deprecated.
|
void |
setState(String state)
Deprecated.
|
void |
setTokenResponseParameters(Map<String,Object> tokenResponseParameters)
Deprecated.
|
public String getAccessToken()
getAccessToken in interface ResourceOwnerOAuthContextpublic String getRefreshToken()
getRefreshToken in interface ResourceOwnerOAuthContextpublic String getState()
getState in interface ResourceOwnerOAuthContextpublic void setAccessToken(String accessToken)
public void setRefreshToken(String refreshToken)
public void setExpiresIn(String expiresIn)
public String getExpiresIn()
getExpiresIn in interface ResourceOwnerOAuthContextpublic void setState(String state)
public Map<String,Object> getTokenResponseParameters()
getTokenResponseParameters in interface ResourceOwnerOAuthContextpublic void setTokenResponseParameters(Map<String,Object> tokenResponseParameters)
public Lock getRefreshUserOAuthContextLock()
public String getResourceOwnerId()
getResourceOwnerId in interface ResourceOwnerOAuthContextpublic void setRefreshUserOAuthContextLock(Lock refreshUserOAuthContextLock)
public DancerState getDancerState()
getDancerState in interface ResourceOwnerOAuthContextpublic void setDancerState(DancerState dancerState)
ResourceOwnerOAuthContextNote 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.
setDancerState in interface ResourceOwnerOAuthContextdancerState - the state of the dance for the resource owner of this context.public Lock getRefreshOAuthContextLock(String lockNamePrefix, org.mule.runtime.api.lock.LockFactory lockFactory)
ResourceOwnerOAuthContextgetRefreshOAuthContextLock in interface ResourceOwnerOAuthContextlockNamePrefix - 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.Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.