Ignore:
Timestamp:
2015-12-26T23:42:03+01:00 (4 years ago)
Author:
simon04
Message:

see #12231 - Use HttpClient for OSM API calls

This requires adaptors to the OAuth library: SignpostAdapters

Location:
trunk/src/org/openstreetmap/josm/data/oauth
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/oauth/OAuthParameters.java

    r8513 r9172  
    77import oauth.signpost.OAuthConsumer;
    88import oauth.signpost.OAuthProvider;
    9 import oauth.signpost.basic.DefaultOAuthConsumer;
    10 import oauth.signpost.basic.DefaultOAuthProvider;
    119
    1210import org.openstreetmap.josm.Main;
     
    220218     */
    221219    public OAuthConsumer buildConsumer() {
    222         return new DefaultOAuthConsumer(consumerKey, consumerSecret);
     220        return new SignpostAdapters.OAuthConsumer(consumerKey, consumerSecret);
    223221    }
    224222
     
    232230    public OAuthProvider buildProvider(OAuthConsumer consumer) {
    233231        CheckParameterUtil.ensureParameterNotNull(consumer, "consumer");
    234         return new DefaultOAuthProvider(
     232        return new SignpostAdapters.OAuthProvider(
    235233                requestTokenUrl,
    236234                accessTokenUrl,
Note: See TracChangeset for help on using the changeset viewer.