public class ClientCredentialsGrantType extends AbstractGrantType implements Initialisable, Startable, MuleContextAware
PHASE_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 |
getClientId() |
String |
getClientSecret() |
String |
getRefreshTokenWhen() |
TlsContextFactory |
getTlsContext() |
void |
initialise() |
void |
refreshAccessToken() |
void |
setClientId(String clientId) |
void |
setClientSecret(String clientSecret) |
void |
setMuleContext(MuleContext context) |
void |
setTlsContext(TlsContextFactory tlsContextFactory) |
void |
setTokenManager(TokenManagerConfig tokenManager) |
void |
setTokenRequestHandler(ClientCredentialsTokenRequestHandler tokenRequestHandler) |
boolean |
shouldRetry(MuleEvent firstAttemptResponseEvent) |
void |
start() |
buildAuthorizationHeaderContentpublic void setClientId(String clientId)
public void setClientSecret(String clientSecret)
public void setTokenRequestHandler(ClientCredentialsTokenRequestHandler tokenRequestHandler)
public TlsContextFactory getTlsContext()
public void setTlsContext(TlsContextFactory tlsContextFactory)
public void start()
throws MuleException
start in interface StartableMuleExceptionpublic String getClientSecret()
getClientSecret in interface ApplicationCredentialspublic String getClientId()
getClientId in interface ApplicationCredentialspublic 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.HttpAuthenticationpublic void setTokenManager(TokenManagerConfig tokenManager)
Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.