org.apache.shindig.auth
Class OAuthUtil
java.lang.Object
org.apache.shindig.auth.OAuthUtil
public final class OAuthUtil
- extends Object
Wrapper for the OAuth.net utility functions. Some of them are declared as throwing IOException
for cases that are extremely unlikely to happen. We turn those IOExceptions in to
RuntimeExceptions since the caller can't do anything about them anyway.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getParameter
public static String getParameter(net.oauth.OAuthMessage message,
String name)
getParameters
public static List<Map.Entry<String,String>> getParameters(net.oauth.OAuthMessage message)
formEncode
public static String formEncode(Iterable<? extends Map.Entry<String,String>> parameters)
addParameters
public static String addParameters(String url,
List<Map.Entry<String,String>> parameters)
newRequestMessage
public static net.oauth.OAuthMessage newRequestMessage(net.oauth.OAuthAccessor accessor,
String method,
String url,
List<net.oauth.OAuth.Parameter> parameters)
throws net.oauth.OAuthException
- Throws:
net.oauth.OAuthException
getSignatureType
public static OAuthUtil.SignatureType getSignatureType(boolean tokenEndpoint,
String contentType)
- Parameters:
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.