Ignore:
Timestamp:
2014-02-13T21:10:18+01:00 (12 years ago)
Author:
stoecker
Message:

see #9710 - update oauth library code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/oauth/signpost/OAuthProvider.java

    r4231 r6849  
    108108     *        your application as a desktop app (which would only be able to
    109109     *        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.
    110115     * @return The URL to which the user must be sent in order to authorize the
    111116     *         consumer. It includes the unauthorized request token (and in the
     
    122127     *         if server communication failed
    123128     */
    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;
    127133
    128134    /**
     
    149155     *        value. If your app has received a callback, the verfication code
    150156     *        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.
    151162     * @throws OAuthMessageSignerException
    152163     *         if signing the request failed
     
    159170     *         if server communication failed
    160171     */
    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;
    164176
    165177    /**
Note: See TracChangeset for help on using the changeset viewer.