public class MockOAuthManager extends BoxOAuthManagerImpl
Modifier and Type | Field and Description |
---|---|
static boolean |
refreshShouldFail |
Constructor and Description |
---|
MockOAuthManager() |
Modifier and Type | Method and Description |
---|---|
BoxOAuthToken |
createOAuth(BoxOAuthRequestObject requestObject) |
BoxOAuthToken |
refreshOAuth(BoxOAuthRequestObject requestObject) |
createOAuth, createOAuth, refreshOAuth, refreshOAuth, revokeOAuth, revokeOAuth
executeRequestWithNoResponseBody, getAuth, getClassFromType, getConfig, getJSONParser, getResourceHub, getResponseAndParse, getResponseAndParseAndTryCast, getRestClient, tryCastBoxItem, tryCastObject
public BoxOAuthToken refreshOAuth(BoxOAuthRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
refreshOAuth
in class BoxOAuthManagerImpl
BoxRestException
BoxServerException
AuthFatalFailureException
public BoxOAuthToken createOAuth(BoxOAuthRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
createOAuth
in class BoxOAuthManagerImpl
BoxRestException
BoxServerException
AuthFatalFailureException