Changeset 6849 in josm for trunk/src/oauth/signpost/OAuthProvider.java
- Timestamp:
- 2014-02-13T21:10:18+01:00 (12 years ago)
- File:
-
- 1 edited
-
trunk/src/oauth/signpost/OAuthProvider.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/oauth/signpost/OAuthProvider.java
r4231 r6849 108 108 * your application as a desktop app (which would only be able to 109 109 * handle OOB requests). 110 * @param customOAuthParams 111 * you can pass custom OAuth parameters here which will go directly 112 * into the signer, i.e. you don't have to put them into the request 113 * first. This is useful for pre-setting OAuth params for signing. 114 * Pass them sequentially in key/value order. 110 115 * @return The URL to which the user must be sent in order to authorize the 111 116 * consumer. It includes the unauthorized request token (and in the … … 122 127 * if server communication failed 123 128 */ 124 public String retrieveRequestToken(OAuthConsumer consumer, String callbackUrl) 125 throws OAuthMessageSignerException, OAuthNotAuthorizedException, 126 OAuthExpectationFailedException, OAuthCommunicationException; 129 public String retrieveRequestToken(OAuthConsumer consumer, String callbackUrl, 130 String... customOAuthParams) throws OAuthMessageSignerException, 131 OAuthNotAuthorizedException, OAuthExpectationFailedException, 132 OAuthCommunicationException; 127 133 128 134 /** … … 149 155 * value. If your app has received a callback, the verfication code 150 156 * was passed as part of that request instead. 157 * @param customOAuthParams 158 * you can pass custom OAuth parameters here which will go directly 159 * into the signer, i.e. you don't have to put them into the request 160 * first. This is useful for pre-setting OAuth params for signing. 161 * Pass them sequentially in key/value order. 151 162 * @throws OAuthMessageSignerException 152 163 * if signing the request failed … … 159 170 * if server communication failed 160 171 */ 161 public void retrieveAccessToken(OAuthConsumer consumer, String oauthVerifier) 162 throws OAuthMessageSignerException, OAuthNotAuthorizedException, 163 OAuthExpectationFailedException, OAuthCommunicationException; 172 public void retrieveAccessToken(OAuthConsumer consumer, String oauthVerifier, 173 String... customOAuthParams) throws OAuthMessageSignerException, 174 OAuthNotAuthorizedException, OAuthExpectationFailedException, 175 OAuthCommunicationException; 164 176 165 177 /**
Note:
See TracChangeset
for help on using the changeset viewer.
