@ConnectionManagement(configElementName="config-oauth-token", friendlyName="OAuth 2.0 Access Token") public class OAuthTokenConfig extends AbstractConfig
Constructor and Description |
---|
OAuthTokenConfig() |
Modifier and Type | Method and Description |
---|---|
void |
connect(String username,
String accessToken,
String soapUrl,
String odataUrl,
String companyName,
Boolean disableCnCheck)
Connect
|
String |
connectionId()
Connection ID
|
String |
getAuthUsername()
Return the username
|
protected org.apache.http.auth.Credentials |
getCredentials() |
disconnect, doConnect, getCodeunitClient, getCompanyName, getDisableCnCheck, getHttpClient, getOdataClient, getOdataUrl, getPageClient, getPassword, getSoapUrl, getUsername, isConnected
@Connect @TestConnectivity public void connect(@Summary(value="The Dynamics NAV username to connect to Dynamics NAV.")@ConnectionKey String username, @Password String accessToken, @Summary(value="Base URL where the SOAP services are exposed in the form _https://: / /WS_. Example: https://hostname:7047/DynamicsNAV90/WS")@ConnectionKey String soapUrl, @Summary(value="Base URL where the OData services are exposed in the form _https:// : / /OData_. Example: https://hostname:7048/DynamicsNAV90/OData.")@ConnectionKey String odataUrl, @Summary(value="Dynamics NAV Company to which connect. In case the field is left blank, the default configured one is used.")@Optional String companyName, @FriendlyName(value="Disable SSL certificate validation")@Default(value="false") Boolean disableCnCheck) throws org.mule.api.ConnectionException
username
- A usernameaccessToken
- A passwordorg.mule.api.ConnectionException
@ConnectionIdentifier public String connectionId()
protected org.apache.http.auth.Credentials getCredentials()
getCredentials
in class AbstractConfig
public String getAuthUsername()
getAuthUsername
in class AbstractConfig
Copyright © 2010–2016. All rights reserved.