public class DefaultAuthorizationCodeGrantType extends AbstractGrantType implements Initialisable, AuthorizationCodeGrantType, Startable, MuleContextAware
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTERNAL_REDIRECT_URL_PROPERTY |
clientId, clientSecret, proxyConfig, tlsContextFactory, tokenManagerConfigPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
DefaultAuthorizationCodeGrantType() |
buildAuthorizationHeaderContent, getClientId, getClientSecret, getTlsContext, setClientId, setClientSecret, setProxyConfig, setTlsContext, setTokenManagerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTlsContextgetClientId, getClientSecretpublic static final String EXTERNAL_REDIRECT_URL_PROPERTY
public void setRedirectionUrl(String redirectionUrl)
public void setAuthorizationRequestHandler(AuthorizationRequestHandler authorizationRequestHandler)
public void setTokenRequestHandler(AbstractAuthorizationCodeTokenRequestHandler tokenRequestHandler)
public ConfigOAuthContext getConfigOAuthContext()
public String getRedirectionUrl()
getRedirectionUrl in interface AuthorizationCodeGrantTypepublic String getExternalRedirectionUrl()
getExternalRedirectionUrl in interface AuthorizationCodeGrantTypepublic String getRefreshTokenWhen()
getRefreshTokenWhen in interface AuthorizationCodeGrantTypepublic AttributeEvaluator getLocalAuthorizationUrlResourceOwnerIdEvaluator()
getLocalAuthorizationUrlResourceOwnerIdEvaluator in interface AuthorizationCodeGrantTypepublic AttributeEvaluator getResourceOwnerIdEvaluator()
getResourceOwnerIdEvaluator in interface AuthorizationCodeGrantTypepublic void refreshToken(MuleEvent currentFlowEvent, String resourceOwnerId) throws MuleException
AuthorizationCodeGrantTyperefreshToken in interface AuthorizationCodeGrantTypecurrentFlowEvent - event from the flow that requires a new access token.resourceOwnerId - the id of the oauth context to refresh.MuleExceptionpublic ConfigOAuthContext getUserOAuthContext()
getUserOAuthContext in interface AuthorizationCodeGrantTypepublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarepublic void initialise()
throws InitialisationException
initialise in interface InitialisableInitialisationExceptionpublic void authenticate(MuleEvent muleEvent, org.mule.module.http.internal.domain.request.HttpRequestBuilder builder) throws MuleException
authenticate in interface org.mule.module.http.api.HttpAuthenticationMuleExceptionpublic boolean shouldRetry(MuleEvent firstAttemptResponseEvent) throws MuleException
shouldRetry in interface org.mule.module.http.api.HttpAuthenticationMuleExceptionpublic void setLocalAuthorizationUrlResourceOwnerId(String resourceOwnerId)
public void setResourceOwnerId(String resourceOwnerId)
public void start()
throws MuleException
start in interface StartableMuleExceptionCopyright © 2003–2020 MuleSoft, Inc.. All rights reserved.