public class AutoAuthorizationCodeTokenRequestHandler extends AbstractAuthorizationCodeTokenRequestHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
OK_STATUS_CODE |
static String |
REDIRECT_STATUS_CODE |
static String |
STATUS_CODE_FLOW_VAR_NAME |
logger| Constructor and Description |
|---|
AutoAuthorizationCodeTokenRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected MessageProcessor |
createRedirectUrlProcessor() |
void |
doRefreshToken(MuleEvent currentEvent,
ResourceOwnerOAuthContext resourceOwnerOAuthContext)
Executes a refresh token for a particular user.
|
void |
init()
Starts the http listener for the redirect url callback.
|
void |
setTokenResponseConfiguration(TokenResponseConfiguration tokenResponseConfiguration) |
createListenerForRedirectUrl, getOauthConfig, refreshToken, setOauthConfiggetMuleContext, getRefreshTokenWhen, invokeTokenUrl, setMuleContext, setRefreshTokenWhen, setTlsContextFactory, setTokenUrlpublic static final String STATUS_CODE_FLOW_VAR_NAME
public static final String OK_STATUS_CODE
public static final String REDIRECT_STATUS_CODE
public AutoAuthorizationCodeTokenRequestHandler()
public void setTokenResponseConfiguration(TokenResponseConfiguration tokenResponseConfiguration)
public void init()
throws MuleException
init in class AbstractAuthorizationCodeTokenRequestHandlerMuleException - if the listener couldn't be created.protected MessageProcessor createRedirectUrlProcessor()
createRedirectUrlProcessor in class AbstractAuthorizationCodeTokenRequestHandlerpublic void doRefreshToken(MuleEvent currentEvent, ResourceOwnerOAuthContext resourceOwnerOAuthContext)
doRefreshToken in class AbstractAuthorizationCodeTokenRequestHandlercurrentEvent - the event being processed when the refresh token was required.resourceOwnerOAuthContext - oauth context for who we need to update the access token.Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.