public final class OAuthUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OAuthUtil.SignatureType |
| Modifier and Type | Method and Description |
|---|---|
static String |
addParameters(String url,
List<Map.Entry<String,String>> parameters) |
static String |
formEncode(Iterable<? extends Map.Entry<String,String>> parameters) |
static String |
getParameter(net.oauth.OAuthMessage message,
String name) |
static List<Map.Entry<String,String>> |
getParameters(net.oauth.OAuthMessage message) |
static OAuthUtil.SignatureType |
getSignatureType(boolean tokenEndpoint,
String contentType) |
static net.oauth.OAuthMessage |
newRequestMessage(net.oauth.OAuthAccessor accessor,
String method,
String url,
List<net.oauth.OAuth.Parameter> parameters) |
public static List<Map.Entry<String,String>> getParameters(net.oauth.OAuthMessage message)
public static String addParameters(String url, List<Map.Entry<String,String>> parameters)
public static net.oauth.OAuthMessage newRequestMessage(net.oauth.OAuthAccessor accessor,
String method,
String url,
List<net.oauth.OAuth.Parameter> parameters)
throws net.oauth.OAuthException
net.oauth.OAuthExceptionpublic static OAuthUtil.SignatureType getSignatureType(boolean tokenEndpoint, String contentType)
tokenEndpoint - true if this is a request token or access token request. We don't check
oauth_body_hash on those.Copyright © 2007-2012. All Rights Reserved.