+ "clientId, clientSecret, userName and either authSecureStorage or userPassword");
}
LOG.debug("Creating BoxClient for login:{}, client_id:{} ...", userName, clientId);
// if set, use configured connection manager builder
final BoxConnectionManagerBuilder connectionManagerBuilder = configuration.getConnectionManagerBuilder();
final BoxConnectionManagerBuilder connectionManager = connectionManagerBuilder != null
? connectionManagerBuilder : new BoxConnectionManagerBuilder();
// create REST client for BoxClient
final ClientConnectionManager[] clientConnectionManager = new ClientConnectionManager[1];
final IBoxRESTClient restClient = new BoxRESTClient(connectionManager.build()) {
@Override
public HttpClient getRawHttpClient() {
final HttpClient httpClient = super.getRawHttpClient();
clientConnectionManager[0] = httpClient.getConnectionManager();