private void updateParamsForAuth(String[] authNames,List<Pair> queryParams,Map<String,String> headerParams){
  for (  String authName : authNames) {
    Authentication auth=authentications.get(authName);
    if (auth == null)     throw new RuntimeException("Authentication undefined: " + authName);
    auth.applyToParams(queryParams,headerParams);
  }
}

private void updateParamsForAuth ( String [ ] authNames , List < Pair > queryParams , Map < String , String > headerParams ) { for ( String authName : authNames ) { Authentication auth = authentications . get ( authName ) ; if ( auth == null ) throw new RuntimeException ( "Authentication undefined: " + authName ) ; auth . applyToParams ( queryParams , headerParams ) ; } }
update query and header parameters based on authentication settings .
