public class OAuthOperations extends Object
tokenManager.| Constructor and Description |
|---|
OAuthOperations() |
| Modifier and Type | Method and Description |
|---|---|
void |
invalidateOauthContext(TokenManagerConfig tokenManager,
String resourceOwnerId)
Clears the oauth context for a token manager and a resource owner id.
|
String |
retrieveAccessToken(TokenManagerConfig tokenManager,
String resourceOwnerId)
Returns the access token of the token manager for the parametrized resource owner ID
|
Object |
retrieveCustomTokenResponseParam(TokenManagerConfig tokenManager,
String resourceOwnerId,
String key)
Returns the value of the parameter that was extracted during the dance from the token manager for the parametrized resource owner ID
|
String |
retrieveExpiresIn(TokenManagerConfig tokenManager,
String resourceOwnerId)
Returns the expiration of the oauth context for the parametrized resource owner ID
|
String |
retrieveRefreshToken(TokenManagerConfig tokenManager,
String resourceOwnerId)
Returns the refresh token of the oauth context for the parametrized resource owner ID
|
String |
retrieveState(TokenManagerConfig tokenManager,
String resourceOwnerId)
Returns the state of the oauth context for the parametrized resource owner ID
|
public void invalidateOauthContext(@Expression(value=NOT_SUPPORTED)
TokenManagerConfig tokenManager,
@Optional(defaultValue="default")
String resourceOwnerId)
tokenManager - The token manager which holds the credentials to invalidate.resourceOwnerId - The resource owner id to invalidate. This attribute is only allowed for authorization code grant type.@MediaType(value="text/plain",
strict=false)
public String retrieveAccessToken(@Expression(value=NOT_SUPPORTED)
TokenManagerConfig tokenManager,
@Optional(defaultValue="default")
String resourceOwnerId)
tokenManager - The token manager which holds the access token.resourceOwnerId - The resource owner id to invalidate. This attribute is only allowed for authorization code grant type.@MediaType(value="text/plain",
strict=false)
public String retrieveRefreshToken(@Expression(value=NOT_SUPPORTED)
TokenManagerConfig tokenManager,
@Optional(defaultValue="default")
String resourceOwnerId)
tokenManager - The token manager which holds the refresh token.resourceOwnerId - The resource owner id to invalidate. This attribute is only allowed for authorization code grant type.@MediaType(value="text/plain",
strict=false)
public String retrieveExpiresIn(@Expression(value=NOT_SUPPORTED)
TokenManagerConfig tokenManager,
@Optional(defaultValue="default")
String resourceOwnerId)
tokenManager - The token manager which holds the access token.resourceOwnerId - The resource owner id to invalidate. This attribute is only allowed for authorization code grant type.@MediaType(value="text/plain",
strict=false)
public String retrieveState(@Expression(value=NOT_SUPPORTED)
TokenManagerConfig tokenManager,
@Optional(defaultValue="default")
String resourceOwnerId)
tokenManager - The token manager which holds the access token.resourceOwnerId - The resource owner id to invalidate. This attribute is only allowed for authorization code grant type.@OutputResolver(output=TokenResponseParameterOutputResolver.class) public Object retrieveCustomTokenResponseParam(@Expression(value=NOT_SUPPORTED) TokenManagerConfig tokenManager, @Optional(defaultValue="default") String resourceOwnerId, String key)
tokenManager - The token manager which holds the access token.resourceOwnerId - The resource owner id to invalidate. This attribute is only allowed for authorization code grant type.key - to look for in the elements that has been extracted after the previous OAuth dance.AbstractGrantType.parameterExtractorsCopyright © 2019 MuleSoft, Inc.. All rights reserved.