Changeset 9227 in josm for trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java
- Timestamp:
- 2015-12-31T03:24:56+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java
r9172 r9227 50 50 private String token; 51 51 private String userName; 52 }53 54 /**55 * Creates a new authorisation client with default OAuth parameters56 *57 */58 public OsmOAuthAuthorizationClient() {59 oauthProviderParameters = OAuthParameters.createDefault(Main.pref.get("osm-server.url"));60 consumer = oauthProviderParameters.buildConsumer();61 provider = oauthProviderParameters.buildProvider(consumer);62 52 } 63 53 … … 241 231 } 242 232 243 protected String buildPostRequest(Map<String, String> parameters) throws OsmOAuthAuthorizationException{233 protected static String buildPostRequest(Map<String, String> parameters) { 244 234 StringBuilder sb = new StringBuilder(32); 245 235 … … 322 312 * Submits a request to the OSM website for a OAuth form. The OSM website replies a session token in 323 313 * a hidden parameter. 314 * @param sessionId session id 315 * @param requestToken request token 324 316 * 325 317 * @throws OsmOAuthAuthorizationException if something went wrong
Note:
See TracChangeset
for help on using the changeset viewer.