Ignore:
Timestamp:
2016-08-18T00:21:03+02:00 (9 years ago)
Author:
Don-vip
Message:

see #13232 - cleanup OAuth signpost code:

  • remove classes unused by JOSM
  • add missing @Override annotations
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/oauth/signpost/OAuthConsumer.java

    r6849 r10831  
    2525import oauth.signpost.signature.HmacSha1MessageSigner;
    2626import oauth.signpost.signature.OAuthMessageSigner;
    27 import oauth.signpost.signature.PlainTextMessageSigner;
    2827import oauth.signpost.signature.QueryStringSigningStrategy;
    2928import oauth.signpost.signature.SigningStrategy;
     
    3837 * HTTP messages are signed as follows:
    3938 * <p>
    40  * 
     39 *
    4140 * <pre>
    4241 * // exchange the arguments with the actual token/secret pair
    4342 * OAuthConsumer consumer = new DefaultOAuthConsumer(&quot;1234&quot;, &quot;5678&quot;);
    44  * 
     43 *
    4544 * URL url = new URL(&quot;http://example.com/protected.xml&quot;);
    4645 * HttpURLConnection request = (HttpURLConnection) url.openConnection();
    47  * 
     46 *
    4847 * consumer.sign(request);
    49  * 
     48 *
    5049 * request.connect();
    5150 * </pre>
    52  * 
     51 *
    5352 * </p>
    5453 * </p>
    55  * 
     54 *
    5655 * @author Matthias Kaeppler
    5756 */
     
    6160     * Sets the message signer that should be used to generate the OAuth
    6261     * signature.
    63      * 
     62     *
    6463     * @param messageSigner
    6564     *        the signer
    6665     * @see HmacSha1MessageSigner
    67      * @see PlainTextMessageSigner
    6866     */
    6967    public void setMessageSigner(OAuthMessageSigner messageSigner);
     
    7977     * as-is. <b>BE CAREFUL WITH THIS METHOD! Your service provider may decide
    8078     * to ignore any non-standard OAuth params when computing the signature.</b>
    81      * 
     79     *
    8280     * @param additionalParameters
    8381     *        the parameters
     
    8886     * Defines which strategy should be used to write a signature to an HTTP
    8987     * request.
    90      * 
     88     *
    9189     * @param signingStrategy
    9290     *        the strategy
     
    102100     * {@link OAuthProvider#retrieveRequestToken}, try setting this to true.
    103101     * </p>
    104      * 
     102     *
    105103     * @param enable
    106104     *        true or false
     
    112110     * required OAuth parameters) to it. Where these parameters are written
    113111     * depends on the current {@link SigningStrategy}.
    114      * 
     112     *
    115113     * @param request
    116114     *        the request to sign
     
    132130     * implementation must ensure that only those request types are passed which
    133131     * it supports.
    134      * 
     132     *
    135133     * @param request
    136134     *        the request to sign
     
    152150     * request that is being sent.
    153151     * </p>
    154      * 
     152     *
    155153     * @param url
    156154     *        the input URL. May have query parameters.
     
    166164    /**
    167165     * Sets the OAuth token and token secret used for message signing.
    168      * 
     166     *
    169167     * @param token
    170168     *        the token
     
    189187     * is the exact set of parameters that were used for creating the message
    190188     * signature.
    191      * 
     189     *
    192190     * @return the request parameters used for message signing
    193191     */
Note: See TracChangeset for help on using the changeset viewer.