public class ClientCredentialsGrantType extends AbstractGrantType implements org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Startable, org.mule.runtime.api.lifecycle.Stoppable
muleContext, resolver, tokenManager| Constructor and Description |
|---|
ClientCredentialsGrantType() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(HttpRequestBuilder builder) |
String |
getClientId() |
String |
getClientSecret() |
org.mule.runtime.api.tls.TlsContextFactory |
getTlsContext() |
void |
initialise() |
void |
setTokenManager(TokenManagerConfig tokenManager) |
boolean |
shouldRetry(org.mule.runtime.extension.api.runtime.operation.Result<Object,HttpResponseAttributes> firstAttemptResult) |
void |
start() |
void |
stop() |
buildAuthorizationHeaderContent, setMuleContextpublic org.mule.runtime.api.tls.TlsContextFactory getTlsContext()
public void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.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 authenticate(HttpRequestBuilder builder) throws org.mule.runtime.api.exception.MuleException
authenticate in interface HttpAuthenticationorg.mule.runtime.api.exception.MuleExceptionpublic boolean shouldRetry(org.mule.runtime.extension.api.runtime.operation.Result<Object,HttpResponseAttributes> firstAttemptResult)
shouldRetry in interface HttpAuthenticationpublic void setTokenManager(TokenManagerConfig tokenManager)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.