public class ClientCredentialsGrantType extends AbstractGrantType implements org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Startable, MuleContextAware
| Constructor and Description |
|---|
ClientCredentialsGrantType() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(Event muleEvent,
HttpRequestBuilder builder) |
String |
getClientId() |
String |
getClientSecret() |
String |
getRefreshTokenWhen() |
org.mule.runtime.api.tls.TlsContextFactory |
getTlsContext() |
void |
initialise() |
void |
refreshAccessToken() |
void |
setClientId(String clientId) |
void |
setClientSecret(String clientSecret) |
void |
setMuleContext(MuleContext context) |
void |
setTlsContext(org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory) |
void |
setTokenManager(TokenManagerConfig tokenManager) |
void |
setTokenRequestHandler(ClientCredentialsTokenRequestHandler tokenRequestHandler) |
boolean |
shouldRetry(Event firstAttemptResponseEvent) |
void |
start() |
buildAuthorizationHeaderContentpublic void setClientId(String clientId)
public void setClientSecret(String clientSecret)
public void setTokenRequestHandler(ClientCredentialsTokenRequestHandler tokenRequestHandler)
public org.mule.runtime.api.tls.TlsContextFactory getTlsContext()
public void setTlsContext(org.mule.runtime.api.tls.TlsContextFactory tlsContextFactory)
public void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionpublic String getClientSecret()
getClientSecret in interface ApplicationCredentialspublic String getClientId()
getClientId in interface ApplicationCredentialspublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarepublic String getRefreshTokenWhen()
public void refreshAccessToken()
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void authenticate(Event muleEvent, HttpRequestBuilder builder) throws org.mule.runtime.api.exception.MuleException
authenticate in interface HttpAuthenticationorg.mule.runtime.api.exception.MuleExceptionpublic boolean shouldRetry(Event firstAttemptResponseEvent)
shouldRetry in interface HttpAuthenticationpublic void setTokenManager(TokenManagerConfig tokenManager)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.