public class ClientCredentialsGrantType extends AbstractGrantType implements Initialisable, Startable, MuleContextAware
clientId, clientSecret, proxyConfig, tlsContextFactory, tokenManagerConfigPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
ClientCredentialsGrantType() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(MuleEvent muleEvent,
org.mule.module.http.internal.domain.request.HttpRequestBuilder builder) |
String |
getRefreshTokenWhen() |
void |
initialise() |
void |
refreshAccessToken() |
void |
setMuleContext(MuleContext context) |
void |
setTokenRequestHandler(ClientCredentialsTokenRequestHandler tokenRequestHandler) |
boolean |
shouldRetry(MuleEvent firstAttemptResponseEvent) |
void |
start() |
buildAuthorizationHeaderContent, getClientId, getClientSecret, getTlsContext, setClientId, setClientSecret, setProxyConfig, setTlsContext, setTokenManagerpublic void setTokenRequestHandler(ClientCredentialsTokenRequestHandler tokenRequestHandler)
public void start()
throws MuleException
start in interface StartableMuleExceptionpublic void initialise()
throws InitialisationException
initialise in interface InitialisableInitialisationExceptionpublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarepublic String getRefreshTokenWhen()
public void refreshAccessToken()
throws MuleException
MuleExceptionpublic 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)
shouldRetry in interface org.mule.module.http.api.HttpAuthenticationCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.