@ConnectionManagement(configElementName="config-oauth-user-pass", friendlyName="OAuth 2.0 Username-Password") public class OAuth2UserPasswordConfig extends BaseConfig
Modifier and Type | Field and Description |
---|---|
static String |
FIELD_MISSING |
static String |
NO_RESPONSE_ERROR |
static String |
TOKEN_MISSING_ERROR |
connectionTimeout, proxyHost, proxyPassword, proxyPort, proxyUsername, readTimeout
Constructor and Description |
---|
OAuth2UserPasswordConfig() |
Modifier and Type | Method and Description |
---|---|
void |
connect(String clientId) |
void |
disconnect() |
String |
getClientId() |
String |
getClientSecret() |
DynamicsConnection |
getConnection() |
String |
getEndpoint() |
Integer |
getMaxHttpConnections() |
String |
getPassword() |
String |
getResource() |
String |
getTokenRequestEndpoint() |
String |
getUsername() |
void |
setClientId(String clientId) |
void |
setClientSecret(String clientSecret) |
void |
setConnection(DynamicsConnection connection) |
void |
setMaxHttpConnections(Integer maxHttpConnections) |
void |
setPassword(String password) |
void |
setResource(String resource) |
void |
setTokenRequestEndpoint(String tokenRequestEndpoint) |
void |
setUsername(String username) |
boolean |
validateConnection() |
addEndpoint, addSlash, addVersion, getConnectionTimeout, getProxyHost, getProxyPassword, getProxyPort, getProxyUsername, getReadTimeout, getVersion, prepareHttpClientFactory, prepareHttpClientFactory, prepareProxyDetails, prepareRequestConfig, setConnectionTimeout, setProxyHost, setProxyPassword, setProxyPort, setProxyUsername, setReadTimeout, setVersion
public static final String FIELD_MISSING
public static final String TOKEN_MISSING_ERROR
public static final String NO_RESPONSE_ERROR
public Integer getMaxHttpConnections()
public void setMaxHttpConnections(Integer maxHttpConnections)
public DynamicsConnection getConnection()
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public String getResource()
public void setResource(String resource)
public String getClientId()
public void setClientId(String clientId)
public String getClientSecret()
public void setClientSecret(String clientSecret)
public void setConnection(DynamicsConnection connection)
public String getTokenRequestEndpoint()
public void setTokenRequestEndpoint(String tokenRequestEndpoint)
public String getEndpoint()
@Connect @TestConnectivity public void connect(@Placement(order=1) @ConnectionKey String clientId) throws org.mule.api.ConnectionException
org.mule.api.ConnectionException
@ValidateConnection public boolean validateConnection()
@Disconnect public void disconnect()
Copyright © 2010–2020. All rights reserved.