Source:
public ETClient(ETConfiguration configuration) throws ETSdkException { this.configuration = configuration; clientId = configuration.get("clientId"); clientSecret = configuration.get("clientSecret"); username = configuration.get("username"); password = configuration.get("password"); endpoint = configuration.get("endpoint"); if (endpoint == null) { endpoint = DEFAULT_ENDPOINT; } authEndpoint = configuration.get("authEndpoint"); if (authEndpoint == null) { authEndpoint = DEFAULT_AUTH_ENDPOINT; } soapEndpoint = configuration.get("soapEndpoint"); GsonBuilder gsonBuilder = new GsonBuilder() .excludeFieldsWithoutExposeAnnotation() .setDateFormat("yyyy-MM-dd'T'HH:mm:ss"); if (logger.isDebugEnabled()) { gson = gsonBuilder.setPrettyPrinting().create(); } else { gson = gsonBuilder.create(); } useOAuth2Authentication = configuration.isTrue("useOAuth2Authentication") ? true : false; if (clientId != null && clientSecret != null) { authConnection = new ETRestConnection(this, authEndpoint, true); requestToken(); restConnection = new ETRestConnection(this, endpoint); fetchSoapEndpoint(); soapConnection = new ETSoapConnection(this, soapEndpoint, accessToken); } else { if (username == null || password == null) { throw new ETSdkException("must specify either " + "clientId/clientSecret or username/password"); } if (soapEndpoint == null) { throw new ETSdkException("must specify soapEndpoint " + "when authenticating with username/password"); } soapConnection = new ETSoapConnection(this, soapEndpoint, username, password); } if (configuration.isFalse("autoHydrateObjects")) { autoHydrateObjects = false; } if (logger.isTraceEnabled()) { logger.trace("ETClient initialized:"); logger.trace(" clientId = " + clientId); logger.trace(" clientSecret = *"); logger.trace(" username = " + username); logger.trace(" password = *"); logger.trace(" endpoint = " + endpoint); logger.trace(" authEndpoint = " + authEndpoint); logger.trace(" soapEndpoint = " + soapEndpoint); logger.trace(" autoHydrateObjects = " + autoHydrateObjects); } }

Target:
public ETClient(ETConfiguration configuration) throws ETSdkException { this.configuration = configuration; clientId = configuration.get("clientId"); clientSecret = configuration.get("clientSecret"); username = configuration.get("username"); password = configuration.get("password"); endpoint = configuration.get("endpoint"); if (endpoint == null) { endpoint = DEFAULT_ENDPOINT; } authEndpoint = configuration.get("authEndpoint"); if (authEndpoint == null) { authEndpoint = DEFAULT_AUTH_ENDPOINT; } soapEndpoint = configuration.get("soapEndpoint"); GsonBuilder gsonBuilder = new GsonBuilder() .excludeFieldsWithoutExposeAnnotation() .setDateFormat("yyyy-MM-dd'T'HH:mm:ss"); if (logger.isDebugEnabled()) { gson = gsonBuilder.setPrettyPrinting().create(); } else { gson = gsonBuilder.create(); } useOAuth2Authentication = configuration.isTrue("useOAuth2Authentication") ? true : false; accountId = configuration.get("accountId"); scope = configuration.get("scope"); if (clientId != null && clientSecret != null) { authConnection = new ETRestConnection(this, authEndpoint, true); requestToken(); restConnection = new ETRestConnection(this, endpoint); fetchSoapEndpoint(); soapConnection = new ETSoapConnection(this, soapEndpoint, accessToken); } else { if (username == null || password == null) { throw new ETSdkException("must specify either " + "clientId/clientSecret or username/password"); } if (soapEndpoint == null) { throw new ETSdkException("must specify soapEndpoint " + "when authenticating with username/password"); } soapConnection = new ETSoapConnection(this, soapEndpoint, username, password); } if (configuration.isFalse("autoHydrateObjects")) { autoHydrateObjects = false; } if (logger.isTraceEnabled()) { logger.trace("ETClient initialized:"); logger.trace(" clientId = " + clientId); logger.trace(" clientSecret = *"); logger.trace(" username = " + username); logger.trace(" password = *"); logger.trace(" endpoint = " + endpoint); logger.trace(" authEndpoint = " + authEndpoint); logger.trace(" soapEndpoint = " + soapEndpoint); logger.trace(" autoHydrateObjects = " + autoHydrateObjects); } }