Changeset 3095 in josm for trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java
- Timestamp:
- 2010-03-08T09:24:03+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java
r3083 r3095 47 47 /** 48 48 * Creates a new authorisation client with default OAuth parameters 49 * 49 * 50 50 */ 51 51 public OsmOAuthAuthorizationClient() { … … 57 57 /** 58 58 * Creates a new authorisation client with the parameters <code>parameters</code>. 59 * 59 * 60 60 * @param parameters the OAuth parameters. Must not be null. 61 61 * @throws IllegalArgumentException thrown if parameters is null … … 71 71 * Creates a new authorisation client with the parameters <code>parameters</code> 72 72 * and an already known Request Token. 73 * 73 * 74 74 * @param parameters the OAuth parameters. Must not be null. 75 75 * @param requestToken the request token. Must not be null. … … 117 117 * Submits a request for a Request Token to the Request Token Endpoint Url of the OAuth Service 118 118 * Provider and replies the request token. 119 * 119 * 120 120 * @param monitor a progress monitor. Defaults to {@see NullProgressMonitor#INSTANCE} if null 121 121 * @return the OAuth Request Token … … 147 147 * Submits a request for an Access Token to the Access Token Endpoint Url of the OAuth Service 148 148 * Provider and replies the request token. 149 * 149 * 150 150 * You must have requested a Request Token using {@see #getRequestToken(ProgressMonitor)} first. 151 * 151 * 152 152 * @param monitor a progress monitor. Defaults to {@see NullProgressMonitor#INSTANCE} if null 153 153 * @return the OAuth Access Token … … 180 180 * Builds the authorise URL for a given Request Token. Users can be redirected to this URL. 181 181 * There they can login to OSM and authorise the request. 182 * 182 * 183 183 * @param requestToken the request token 184 184 * @return the authorise URL for this request … … 241 241 /** 242 242 * Derives the OSM login URL from the OAuth Authorization Website URL 243 * 243 * 244 244 * @return the OSM login URL 245 245 * @throws OsmOAuthAuthorizationException thrown if something went wrong, in particular if the … … 261 261 /** 262 262 * Derives the OSM logout URL from the OAuth Authorization Website URL 263 * 263 * 264 264 * @return the OSM logout URL 265 265 * @throws OsmOAuthAuthorizationException thrown if something went wrong, in particular if the … … 279 279 * Submits a request to the OSM website for a login form. The OSM website replies a session ID in 280 280 * a cookie. 281 * 281 * 282 282 * @return the session ID 283 283 * @throws OsmOAuthAuthorizationException thrown if something went wrong … … 460 460 /** 461 461 * Automatically authorises a request token for a set of privileges. 462 * 462 * 463 463 * @param requestToken the request token. Must not be null. 464 464 * @param osmUserName the OSM user name. Must not be null.
Note:
See TracChangeset
for help on using the changeset viewer.