public abstract class AbstractAuthorizationCodeTokenRequestHandler extends AbstractTokenRequestHandler
AbstractTokenRequestHandler.TokenUrlResponseException| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
AbstractAuthorizationCodeTokenRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createListenerForRedirectUrl() |
protected abstract MessageProcessor |
createRedirectUrlProcessor() |
protected abstract void |
doRefreshToken(MuleEvent currentEvent,
ResourceOwnerOAuthContext resourceOwnerOAuthContext)
ThreadSafe refresh token operation to be implemented by subclasses
|
AuthorizationCodeGrantType |
getOauthConfig() |
void |
init()
initialization method after configuration.
|
void |
refreshToken(MuleEvent currentEvent,
String resourceOwnerId)
Updates the access token by calling the token url with refresh token grant type
|
void |
setOauthConfig(AuthorizationCodeGrantType oauthConfig) |
getMuleContext, getRefreshTokenWhen, getTokenUrl, invokeTokenUrl, setMuleContext, setRefreshTokenWhen, setTlsContextFactory, setTokenUrlpublic AbstractAuthorizationCodeTokenRequestHandler()
public void refreshToken(MuleEvent currentEvent, String resourceOwnerId) throws MuleException
currentEvent - the event at the moment of the failure.resourceOwnerId - the resource owner id to updateMuleExceptionprotected abstract void doRefreshToken(MuleEvent currentEvent, ResourceOwnerOAuthContext resourceOwnerOAuthContext) throws MuleException
currentEvent - the event at the moment of the failure.resourceOwnerOAuthContext - user oauth context object.MuleExceptionpublic void setOauthConfig(AuthorizationCodeGrantType oauthConfig)
oauthConfig - oauth config for this token request handler.public AuthorizationCodeGrantType getOauthConfig()
public void init()
throws MuleException
MuleExceptionprotected void createListenerForRedirectUrl()
throws MuleException
MuleExceptionprotected abstract MessageProcessor createRedirectUrlProcessor()
Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.