public class NuxeoOAuthRequest
extends org.apache.shindig.gadgets.oauth.OAuthRequest
| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
ALLOWED_PARAM_NAME |
protected org.apache.shindig.gadgets.oauth.OAuthClientState |
clientState
State information from client
|
protected org.apache.shindig.gadgets.oauth.OAuthFetcherConfig |
fetcherConfig
Configuration options for the fetcher.
|
static String |
NUXEO_INTERNAL_REQUEST |
protected static String |
OPENSOCIAL_APPID |
protected static String |
OPENSOCIAL_APPURL |
protected static String |
OPENSOCIAL_OWNERID |
protected static String |
OPENSOCIAL_PROXIED_CONTENT |
protected static String |
OPENSOCIAL_VIEWERID |
protected org.apache.shindig.gadgets.oauth.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 |
|---|
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,
List<net.oauth.OAuth.Parameter> trustedParams) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.shindig.gadgets.http.HttpResponse |
fetch(org.apache.shindig.gadgets.http.HttpRequest request)
OAuth authenticated fetch.
|
protected boolean |
isInternalRequest() |
org.apache.shindig.gadgets.http.HttpRequest |
sanitizeAndSign(org.apache.shindig.gadgets.http.HttpRequest base,
List<net.oauth.OAuth.Parameter> params,
boolean tokenEndpoint)
Start with an HttpRequest.
|
public static final String NUXEO_INTERNAL_REQUEST
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_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 org.apache.shindig.gadgets.oauth.OAuthFetcherConfig fetcherConfig
protected org.apache.shindig.gadgets.oauth.OAuthClientState clientState
protected org.apache.shindig.gadgets.oauth.OAuthResponseParams responseParams
public NuxeoOAuthRequest(org.apache.shindig.gadgets.oauth.OAuthFetcherConfig fetcherConfig,
org.apache.shindig.gadgets.http.HttpFetcher fetcher)
fetcherConfig - configuration options for the fetcherfetcher - fetcher to use for actually making requestspublic NuxeoOAuthRequest(org.apache.shindig.gadgets.oauth.OAuthFetcherConfig fetcherConfig,
org.apache.shindig.gadgets.http.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 org.apache.shindig.gadgets.http.HttpResponse fetch(org.apache.shindig.gadgets.http.HttpRequest request)
fetch in class org.apache.shindig.gadgets.oauth.OAuthRequestprotected boolean isInternalRequest()
public org.apache.shindig.gadgets.http.HttpRequest sanitizeAndSign(org.apache.shindig.gadgets.http.HttpRequest base,
List<net.oauth.OAuth.Parameter> params,
boolean tokenEndpoint)
throws org.apache.shindig.gadgets.oauth.OAuthResponseParams.OAuthRequestException
sanitizeAndSign in class org.apache.shindig.gadgets.oauth.OAuthRequestorg.apache.shindig.gadgets.oauth.OAuthResponseParams.OAuthRequestExceptionCopyright © 2019 Nuxeo SA. All rights reserved.