public class MockUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MockUtils.DummyHttpFetcher |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ACCESS_SECRET |
protected static String |
AUTHORIZE_URL |
protected static String |
CLIENT_ID1 |
protected static String |
CLIENT_ID2 |
protected static String |
CLIENT_SECRET1 |
protected static String |
CLIENT_SECRET2 |
protected static org.apache.shindig.gadgets.oauth2.OAuth2Store |
dummyStore |
protected static Map<String,String> |
EMPTY_MAP |
protected static org.apache.shindig.gadgets.oauth2.persistence.OAuth2Encrypter |
encrypter |
protected static String |
GADGET_URI1 |
protected static String |
GADGET_URI2 |
protected static String |
MAC_SECRET |
protected static String |
REDIRECT_URI |
protected static String |
REFRESH_SECRET |
protected static Integer |
REFRESH_TOKEN_INDEX |
protected static String |
SCOPE |
protected static String |
SERVICE_NAME |
protected static String |
STATE |
protected static BlobCrypter |
stateCrypter |
protected static String |
TOKEN_URL |
protected static String |
USER |
| Constructor and Description |
|---|
MockUtils() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.apache.shindig.gadgets.oauth2.persistence.OAuth2TokenPersistence |
getAccessToken() |
protected static org.apache.shindig.gadgets.oauth2.persistence.OAuth2TokenPersistence |
getBadMacToken() |
protected static org.apache.shindig.gadgets.oauth2.persistence.OAuth2Client |
getClient_Code_Confidential() |
protected static org.apache.shindig.gadgets.oauth2.persistence.OAuth2Client |
getClient_Code_Public() |
protected static org.apache.shindig.gadgets.oauth2.OAuth2Arguments |
getDummyArguments() |
protected static Authority |
getDummyAuthority() |
protected static List<org.apache.shindig.gadgets.oauth2.handler.ClientAuthenticationHandler> |
getDummyClientAuthHandlers() |
protected static org.apache.shindig.gadgets.oauth2.persistence.OAuth2Encrypter |
getDummyEncrypter() |
protected static org.apache.shindig.gadgets.http.HttpFetcher |
getDummyFetcher() |
protected static com.google.inject.Provider<org.apache.shindig.gadgets.oauth2.OAuth2Message> |
getDummyMessageProvider() |
protected static org.apache.shindig.gadgets.oauth2.persistence.sample.JSONOAuth2Persister |
getDummyPersister() |
protected static SecurityToken |
getDummySecurityToken(String ownerId,
String viewerId,
String appUrl) |
protected static org.apache.shindig.gadgets.GadgetSpecFactory |
getDummySpecFactory() |
protected static BlobCrypter |
getDummyStateCrypter() |
protected static org.apache.shindig.gadgets.oauth2.OAuth2Store |
getDummyStore() |
protected static org.apache.shindig.gadgets.oauth2.OAuth2Store |
getDummyStore(org.apache.shindig.gadgets.oauth2.persistence.OAuth2Cache cache,
org.apache.shindig.gadgets.oauth2.persistence.OAuth2Persister persister,
org.apache.shindig.gadgets.oauth2.persistence.OAuth2Encrypter encrypter,
String globalRedirectUri,
Authority authority,
String contextRoot,
BlobCrypter stateCrypter) |
protected static List<org.apache.shindig.gadgets.oauth2.handler.TokenEndpointResponseHandler> |
getDummyTokenEndpointResponseHandlers() |
protected static String |
getJSONString() |
protected static org.apache.shindig.gadgets.oauth2.persistence.OAuth2TokenPersistence |
getMacToken() |
protected static org.apache.shindig.gadgets.oauth2.OAuth2Accessor |
getOAuth2Accessor_BadMacToken() |
protected static org.apache.shindig.gadgets.oauth2.OAuth2Accessor |
getOAuth2Accessor_ClientCredentials() |
protected static org.apache.shindig.gadgets.oauth2.OAuth2Accessor |
getOAuth2Accessor_ClientCredentialsRedirecting() |
protected static org.apache.shindig.gadgets.oauth2.OAuth2Accessor |
getOAuth2Accessor_Code() |
protected static org.apache.shindig.gadgets.oauth2.OAuth2Accessor |
getOAuth2Accessor_Error() |
protected static org.apache.shindig.gadgets.oauth2.OAuth2Accessor |
getOAuth2Accessor_MacToken() |
protected static org.apache.shindig.gadgets.oauth2.OAuth2Accessor |
getOAuth2Accessor_Redirecting() |
protected static org.apache.shindig.gadgets.oauth2.OAuth2Accessor |
getOAuth2Accessor_StandardAuth() |
protected static org.apache.shindig.gadgets.oauth2.persistence.OAuth2TokenPersistence |
getRefreshToken() |
protected static String |
loadFile(String path) |
protected static final String ACCESS_SECRET
protected static final String AUTHORIZE_URL
protected static final String CLIENT_ID1
protected static final String CLIENT_ID2
protected static final String CLIENT_SECRET1
protected static final String CLIENT_SECRET2
protected static final org.apache.shindig.gadgets.oauth2.persistence.OAuth2Encrypter encrypter
protected static final BlobCrypter stateCrypter
protected static final String GADGET_URI1
protected static final String GADGET_URI2
protected static final String MAC_SECRET
protected static final String REDIRECT_URI
protected static final String REFRESH_SECRET
protected static final Integer REFRESH_TOKEN_INDEX
protected static final String SCOPE
protected static final String SERVICE_NAME
protected static final String STATE
protected static final String TOKEN_URL
protected static final String USER
protected static org.apache.shindig.gadgets.oauth2.OAuth2Store dummyStore
protected static org.apache.shindig.gadgets.oauth2.persistence.OAuth2TokenPersistence getAccessToken()
throws Exception
Exceptionprotected static org.apache.shindig.gadgets.oauth2.persistence.OAuth2TokenPersistence getBadMacToken()
throws Exception
Exceptionprotected static org.apache.shindig.gadgets.oauth2.persistence.OAuth2Client getClient_Code_Confidential()
throws Exception
Exceptionprotected static org.apache.shindig.gadgets.oauth2.persistence.OAuth2Client getClient_Code_Public()
throws Exception
Exceptionprotected static org.apache.shindig.gadgets.oauth2.OAuth2Arguments getDummyArguments()
throws Exception
Exceptionprotected static List<org.apache.shindig.gadgets.oauth2.handler.ClientAuthenticationHandler> getDummyClientAuthHandlers() throws Exception
Exceptionprotected static BlobCrypter getDummyStateCrypter()
protected static org.apache.shindig.gadgets.oauth2.persistence.OAuth2Encrypter getDummyEncrypter()
protected static org.apache.shindig.gadgets.http.HttpFetcher getDummyFetcher()
throws Exception
Exceptionprotected static Authority getDummyAuthority()
protected static com.google.inject.Provider<org.apache.shindig.gadgets.oauth2.OAuth2Message> getDummyMessageProvider()
protected static org.apache.shindig.gadgets.oauth2.persistence.sample.JSONOAuth2Persister getDummyPersister()
throws Exception
Exceptionprotected static org.apache.shindig.gadgets.GadgetSpecFactory getDummySpecFactory()
protected static SecurityToken getDummySecurityToken(String ownerId, String viewerId, String appUrl)
protected static org.apache.shindig.gadgets.oauth2.OAuth2Store getDummyStore()
throws Exception
Exceptionprotected static org.apache.shindig.gadgets.oauth2.OAuth2Store getDummyStore(org.apache.shindig.gadgets.oauth2.persistence.OAuth2Cache cache,
org.apache.shindig.gadgets.oauth2.persistence.OAuth2Persister persister,
org.apache.shindig.gadgets.oauth2.persistence.OAuth2Encrypter encrypter,
String globalRedirectUri,
Authority authority,
String contextRoot,
BlobCrypter stateCrypter)
protected static List<org.apache.shindig.gadgets.oauth2.handler.TokenEndpointResponseHandler> getDummyTokenEndpointResponseHandlers() throws Exception
Exceptionprotected static String getJSONString() throws IOException
IOExceptionprotected static org.apache.shindig.gadgets.oauth2.persistence.OAuth2TokenPersistence getMacToken()
throws Exception
Exceptionprotected static org.apache.shindig.gadgets.oauth2.OAuth2Accessor getOAuth2Accessor_Code()
throws Exception
Exceptionprotected static org.apache.shindig.gadgets.oauth2.OAuth2Accessor getOAuth2Accessor_Error()
protected static org.apache.shindig.gadgets.oauth2.OAuth2Accessor getOAuth2Accessor_MacToken()
throws Exception
Exceptionprotected static org.apache.shindig.gadgets.oauth2.OAuth2Accessor getOAuth2Accessor_BadMacToken()
throws Exception
Exceptionprotected static org.apache.shindig.gadgets.oauth2.OAuth2Accessor getOAuth2Accessor_StandardAuth()
throws Exception
Exceptionprotected static org.apache.shindig.gadgets.oauth2.OAuth2Accessor getOAuth2Accessor_ClientCredentials()
throws Exception
Exceptionprotected static org.apache.shindig.gadgets.oauth2.OAuth2Accessor getOAuth2Accessor_Redirecting()
throws Exception
Exceptionprotected static org.apache.shindig.gadgets.oauth2.OAuth2Accessor getOAuth2Accessor_ClientCredentialsRedirecting()
throws Exception
Exceptionprotected static org.apache.shindig.gadgets.oauth2.persistence.OAuth2TokenPersistence getRefreshToken()
throws Exception
Exceptionprotected static String loadFile(String path) throws IOException
IOExceptionCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.