source: josm/trunk/src/oauth/signpost/signature/SigningStrategy.java@ 9616

Last change on this file since 9616 was 4231, checked in by stoecker, 13 years ago

add signpost and metadata extractor code to repository directly

File size: 1.0 KB
Line 
1package oauth.signpost.signature;
2
3import java.io.Serializable;
4
5import oauth.signpost.http.HttpRequest;
6import oauth.signpost.http.HttpParameters;
7
8/**
9 * <p>
10 * Defines how an OAuth signature string is written to a request.
11 * </p>
12 * <p>
13 * Unlike {@link OAuthMessageSigner}, which is concerned with <i>how</i> to
14 * generate a signature, this class is concered with <i>where</i> to write it
15 * (e.g. HTTP header or query string).
16 * </p>
17 *
18 * @author Matthias Kaeppler
19 */
20public interface SigningStrategy extends Serializable {
21
22 /**
23 * Writes an OAuth signature and all remaining required parameters to an
24 * HTTP message.
25 *
26 * @param signature
27 * the signature to write
28 * @param request
29 * the request to sign
30 * @param requestParameters
31 * the request parameters
32 * @return whatever has been written to the request, e.g. an Authorization
33 * header field
34 */
35 String writeSignature(String signature, HttpRequest request, HttpParameters requestParameters);
36
37}
Note: See TracBrowser for help on using the repository browser.