|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttwitter4j.http.OAuth
public class OAuth
| Constructor Summary | |
|---|---|
OAuth(java.lang.String consumerKey,
java.lang.String consumerSecret)
|
|
| Method Summary | |
|---|---|
static java.lang.String |
constructRequestURL(java.lang.String url)
The Signature Base String includes the request absolute URL, tying the signature to a specific endpoint. |
static java.lang.String |
encode(java.lang.String value)
|
static java.lang.String |
encodeParameters(java.util.List<PostParameter> postParams)
|
static java.lang.String |
encodeParameters(java.util.List<PostParameter> postParams,
java.lang.String splitter,
boolean quot)
|
static java.lang.String |
normalizeAuthorizationHeaders(java.util.List<PostParameter> params)
|
static java.lang.String |
normalizeRequestParameters(java.util.List<PostParameter> params)
|
static java.lang.String |
normalizeRequestParameters(PostParameter[] params)
The request parameters are collected, sorted and concatenated into a normalized string: • Parameters in the OAuth HTTP Authorization header excluding the realm parameter. • Parameters in the HTTP POST request body (with a content-type of application/x-www-form-urlencoded). • HTTP GET parameters added to the URLs in the query part (as defined by [RFC3986] section 3). The oauth_signature parameter MUST be excluded. The parameters are normalized into a single string as follows: 1. |
void |
setConsumerKey(java.lang.String consumerKey)
|
void |
setConsumerSecret(java.lang.String consumerSecret)
|
static java.util.List<PostParameter> |
toParamList(PostParameter[] params)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OAuth(java.lang.String consumerKey,
java.lang.String consumerSecret)
| Method Detail |
|---|
public static java.lang.String normalizeRequestParameters(PostParameter[] params)
params - parameters to be normalized and concatenated
public static java.lang.String normalizeRequestParameters(java.util.List<PostParameter> params)
public static java.lang.String normalizeAuthorizationHeaders(java.util.List<PostParameter> params)
public static java.util.List<PostParameter> toParamList(PostParameter[] params)
public static java.lang.String encodeParameters(java.util.List<PostParameter> postParams)
postParams - parameters to be enocded and concatenated
public static java.lang.String encodeParameters(java.util.List<PostParameter> postParams,
java.lang.String splitter,
boolean quot)
public static java.lang.String encode(java.lang.String value)
value - string to be encoded
public static java.lang.String constructRequestURL(java.lang.String url)
url - the url to be normalized
public void setConsumerKey(java.lang.String consumerKey)
public void setConsumerSecret(java.lang.String consumerSecret)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||