public class BoxOAuthManager extends BoxResourceManager
| Constructor and Description |
|---|
BoxOAuthManager(IBoxConfig config,
IBoxResourceHub resourceHub,
IBoxJSONParser parser,
IBoxRESTClient restClient)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BoxOAuthToken |
createOAuth(BoxOAuthRequestObject requestObject)
Create an OAuth token.
|
BoxOAuthToken |
refreshOAuth(BoxOAuthRequestObject requestObject)
Refresh the OAuth token.
|
void |
revokeOAuth(BoxOAuthRequestObject requestObject) |
executeRequestWithNoResponseBody, getAuth, getClassFromType, getConfig, getJSONParser, getResourceHub, getResponseAndParse, getResponseAndParseAndTryCast, getRestClient, tryCastBoxItem, tryCastObjectpublic BoxOAuthManager(IBoxConfig config, IBoxResourceHub resourceHub, IBoxJSONParser parser, IBoxRESTClient restClient)
config - configresourceHub - resource hubparser - json parserrestClient - REST client to make api calls.public BoxOAuthToken createOAuth(BoxOAuthRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
requestObject - request objectBoxRestException - exceptionBoxServerException - exceptionAuthFatalFailureException - exceptionpublic BoxOAuthToken refreshOAuth(BoxOAuthRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
requestObject - request objectBoxRestException - exceptionBoxServerException - exceptionAuthFatalFailureException - exceptionpublic void revokeOAuth(BoxOAuthRequestObject requestObject) throws BoxServerException, BoxRestException, AuthFatalFailureException
Copyright © 2014. All Rights Reserved.