public abstract class AbstractGrantType extends Object implements org.mule.module.http.api.HttpAuthentication, ApplicationCredentials
| Modifier and Type | Field and Description |
|---|---|
protected String |
clientId |
protected String |
clientSecret |
protected org.mule.module.http.api.requester.proxy.ProxyConfig |
proxyConfig |
protected TlsContextFactory |
tlsContextFactory |
protected TokenManagerConfig |
tokenManagerConfig |
| Constructor and Description |
|---|
AbstractGrantType() |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildAuthorizationHeaderContent(String accessToken) |
String |
getClientId() |
String |
getClientSecret() |
TlsContextFactory |
getTlsContext() |
void |
setClientId(String clientId) |
void |
setClientSecret(String clientSecret) |
void |
setProxyConfig(org.mule.module.http.api.requester.proxy.ProxyConfig proxyConfig) |
void |
setTlsContext(TlsContextFactory tlsContextFactory) |
void |
setTokenManager(TokenManagerConfig tokenManagerConfig) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticate, shouldRetryprotected org.mule.module.http.api.requester.proxy.ProxyConfig proxyConfig
protected TokenManagerConfig tokenManagerConfig
protected TlsContextFactory tlsContextFactory
protected String clientId
protected String clientSecret
public static String buildAuthorizationHeaderContent(String accessToken)
accessToken - an ouath access tokenpublic void setProxyConfig(org.mule.module.http.api.requester.proxy.ProxyConfig proxyConfig)
public TlsContextFactory getTlsContext()
public void setTokenManager(TokenManagerConfig tokenManagerConfig)
public void setTlsContext(TlsContextFactory tlsContextFactory)
public void setClientId(String clientId)
public void setClientSecret(String clientSecret)
public String getClientSecret()
getClientSecret in interface ApplicationCredentialspublic String getClientId()
getClientId in interface ApplicationCredentialsCopyright © 2003–2020 MuleSoft, Inc.. All rights reserved.