org.nuxeo.opensocial.shindig.oauth
Class NuxeoOAuthRequest
java.lang.Object
org.apache.shindig.gadgets.oauth.OAuthRequest
org.nuxeo.opensocial.shindig.oauth.NuxeoOAuthRequest
public class NuxeoOAuthRequest
- extends org.apache.shindig.gadgets.oauth.OAuthRequest
This is complete crap. I end up copying the class because the idiots made all
the implementation classes private for no reason.
Look for the string "NUXEO NUXEO NUXEO CHANGE" to see my changes.
irritated @author Ian Smith
Constructor Summary |
NuxeoOAuthRequest(org.apache.shindig.gadgets.oauth.OAuthFetcherConfig fetcherConfig,
org.apache.shindig.gadgets.http.HttpFetcher fetcher)
|
NuxeoOAuthRequest(org.apache.shindig.gadgets.oauth.OAuthFetcherConfig fetcherConfig,
org.apache.shindig.gadgets.http.HttpFetcher fetcher,
java.util.List<net.oauth.OAuth.Parameter> trustedParams)
|
Method Summary |
org.apache.shindig.gadgets.http.HttpResponse |
fetch(org.apache.shindig.gadgets.http.HttpRequest request)
OAuth authenticated fetch. |
org.apache.shindig.gadgets.http.HttpRequest |
sanitizeAndSign(org.apache.shindig.gadgets.http.HttpRequest base,
java.util.List<net.oauth.OAuth.Parameter> params,
boolean tokenEndpoint)
Start with an HttpRequest. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XOAUTH_APP_URL
public static final java.lang.String XOAUTH_APP_URL
- See Also:
- Constant Field Values
NuxeoOAuthRequest
public NuxeoOAuthRequest(org.apache.shindig.gadgets.oauth.OAuthFetcherConfig fetcherConfig,
org.apache.shindig.gadgets.http.HttpFetcher fetcher)
- Parameters:
fetcherConfig
- configuration options for the fetcherfetcher
- fetcher to use for actually making requests
NuxeoOAuthRequest
public NuxeoOAuthRequest(org.apache.shindig.gadgets.oauth.OAuthFetcherConfig fetcherConfig,
org.apache.shindig.gadgets.http.HttpFetcher fetcher,
java.util.List<net.oauth.OAuth.Parameter> trustedParams)
- Parameters:
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.
fetch
public org.apache.shindig.gadgets.http.HttpResponse fetch(org.apache.shindig.gadgets.http.HttpRequest request)
- OAuth authenticated fetch.
- Overrides:
fetch
in class org.apache.shindig.gadgets.oauth.OAuthRequest
sanitizeAndSign
public org.apache.shindig.gadgets.http.HttpRequest sanitizeAndSign(org.apache.shindig.gadgets.http.HttpRequest base,
java.util.List<net.oauth.OAuth.Parameter> params,
boolean tokenEndpoint)
throws org.apache.shindig.gadgets.oauth.OAuthResponseParams.OAuthRequestException
- Start with an HttpRequest. Throw if there are any attacks in the query.
Throw if there are any attacks in the post body. Build up OAuth parameter
list. Sign it. Add OAuth parameters to new request. Send it.
- Overrides:
sanitizeAndSign
in class org.apache.shindig.gadgets.oauth.OAuthRequest
- Throws:
org.apache.shindig.gadgets.oauth.OAuthResponseParams.OAuthRequestException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.