exporting method set-urlcredentials