private void configureAuth(ClientBuilder clientBuilder){
  if (conf.client.authType == AuthenticationType.OAUTH) {
    authToken=JerseyClientUtil.configureOAuth1(conf.client.oauth,clientBuilder);
  }
 else   if (conf.client.authType != AuthenticationType.NONE) {
    JerseyClientUtil.configurePasswordAuth(conf.client.authType,conf.client.basicAuth,clientBuilder);
  }
}

private void configureAuth ( ClientBuilder clientBuilder ) { if ( conf . client . authType == AuthenticationType . OAUTH ) { authToken = JerseyClientUtil . configureOAuth1 ( conf . client . oauth , clientBuilder ) ; } else if ( conf . client . authType != AuthenticationType . NONE ) { JerseyClientUtil . configurePasswordAuth ( conf . client . authType , conf . client . basicAuth , clientBuilder ) ; } }
helper to apply authentication properties to jersey client .
