public class OAuthRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AccessorInfo |
accessorInfo
The accessor we use for signing messages.
|
protected Map<String,String> |
accessTokenData
Data returned along with OAuth access token, null if this is not an access token request
|
protected static Pattern |
ALLOWED_PARAM_NAME |
protected OAuthClientState |
clientState
State information from client
|
protected OAuthFetcherConfig |
fetcherConfig
Configuration options for the fetcher.
|
protected static String |
OPENSOCIAL_APPID |
protected static String |
OPENSOCIAL_APPURL |
protected static String |
OPENSOCIAL_INSTANCE_ID |
protected static String |
OPENSOCIAL_OWNERID |
protected static String |
OPENSOCIAL_PROXIED_CONTENT |
protected static String |
OPENSOCIAL_VIEWERID |
protected HttpRequest |
realRequest
The request the client really wants to make.
|
protected OAuthResponseParams |
responseParams
OAuth specific stuff to include in the response.
|
static String |
XOAUTH_APP_URL |
protected static String |
XOAUTH_PUBLIC_KEY_NEW |
protected static String |
XOAUTH_PUBLIC_KEY_OLD |
| Constructor and Description |
|---|
OAuthRequest(OAuthFetcherConfig fetcherConfig,
HttpFetcher fetcher) |
OAuthRequest(OAuthFetcherConfig fetcherConfig,
HttpFetcher fetcher,
List<net.oauth.OAuth.Parameter> trustedParams) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowParam(String paramName) |
HttpResponse |
fetch(HttpRequest request)
OAuth authenticated fetch.
|
protected static boolean |
isContainerInjectedParameter(String key) |
HttpRequest |
sanitizeAndSign(HttpRequest base,
List<net.oauth.OAuth.Parameter> params,
boolean tokenEndpoint)
Start with an HttpRequest.
|
public static final String XOAUTH_APP_URL
protected static final String OPENSOCIAL_OWNERID
protected static final String OPENSOCIAL_VIEWERID
protected static final String OPENSOCIAL_APPID
protected static final String OPENSOCIAL_INSTANCE_ID
protected static final String OPENSOCIAL_APPURL
protected static final String OPENSOCIAL_PROXIED_CONTENT
protected static final String XOAUTH_PUBLIC_KEY_OLD
protected static final String XOAUTH_PUBLIC_KEY_NEW
protected static final Pattern ALLOWED_PARAM_NAME
protected final OAuthFetcherConfig fetcherConfig
protected OAuthClientState clientState
protected OAuthResponseParams responseParams
protected AccessorInfo accessorInfo
protected HttpRequest realRequest
public OAuthRequest(OAuthFetcherConfig fetcherConfig, HttpFetcher fetcher)
fetcherConfig - configuration options for the fetcherfetcher - fetcher to use for actually making requestspublic OAuthRequest(OAuthFetcherConfig fetcherConfig, HttpFetcher fetcher, List<net.oauth.OAuth.Parameter> trustedParams)
fetcherConfig - configuration options for the fetcherfetcher - fetcher to use for actually making requeststrustedParams - additional parameters to include in all outgoing OAuth requests, useful
for client data that can't be pulled from the security token but is still trustworthy.public HttpResponse fetch(HttpRequest request)
protected boolean allowParam(String paramName)
public HttpRequest sanitizeAndSign(HttpRequest base, List<net.oauth.OAuth.Parameter> params, boolean tokenEndpoint) throws OAuthRequestException
OAuthRequestExceptionprotected static boolean isContainerInjectedParameter(String key)
Copyright © 2007-2012. All Rights Reserved.