public abstract class AbstractAuthorizationCodeTokenRequestHandler extends AbstractTokenRequestHandler
AbstractTokenRequestHandler.TokenUrlResponseException
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, setTokenUrl
protected Logger logger
public 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 updateMuleException
protected abstract void doRefreshToken(MuleEvent currentEvent, ResourceOwnerOAuthContext resourceOwnerOAuthContext) throws MuleException
currentEvent
- the event at the moment of the failure.resourceOwnerOAuthContext
- user oauth context object.MuleException
public void setOauthConfig(AuthorizationCodeGrantType oauthConfig)
oauthConfig
- oauth config for this token request handler.public AuthorizationCodeGrantType getOauthConfig()
public void init() throws MuleException
MuleException
protected void createListenerForRedirectUrl() throws MuleException
MuleException
protected abstract MessageProcessor createRedirectUrlProcessor()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.