public abstract class AbstractAuthorizationCodeTokenRequestHandler extends AbstractTokenRequestHandler
AbstractTokenRequestHandler.TokenUrlResponseException| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
muleContext| Constructor and Description |
|---|
AbstractAuthorizationCodeTokenRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createListenerForCallbackUrl() |
protected abstract Processor |
createRedirectUrlProcessor() |
protected abstract void |
doRefreshToken(Event currentEvent,
ResourceOwnerOAuthContext resourceOwnerOAuthContext)
ThreadSafe refresh token operation to be implemented by subclasses
|
AuthorizationCodeGrantType |
getOauthConfig() |
void |
init()
initialization method after configuration.
|
void |
refreshToken(Event 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(Event currentEvent, String resourceOwnerId) throws org.mule.runtime.api.exception.MuleException
currentEvent - the event at the moment of the failure.resourceOwnerId - the resource owner id to updateorg.mule.runtime.api.exception.MuleExceptionprotected abstract void doRefreshToken(Event currentEvent, ResourceOwnerOAuthContext resourceOwnerOAuthContext) throws org.mule.runtime.api.exception.MuleException
currentEvent - the event at the moment of the failure.resourceOwnerOAuthContext - user oauth context object.org.mule.runtime.api.exception.MuleExceptionpublic void setOauthConfig(AuthorizationCodeGrantType oauthConfig)
oauthConfig - oauth config for this token request handler.public AuthorizationCodeGrantType getOauthConfig()
public void init()
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionprotected void createListenerForCallbackUrl()
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionprotected abstract Processor createRedirectUrlProcessor()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.