public class OAuthAuthorization extends DefaultRequestAuth
AUTH_HEADER_NAME| Constructor and Description |
|---|
OAuthAuthorization(OAuthDataController oAuth)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
initOAuthForRequest()
Initialize this auth.
|
void |
refresh()
Refresh the OAuth token.
|
void |
setAuth(IBoxRequest request)
Set Auth into the API request.
|
void |
setOAuthData(BoxOAuthToken data) |
public OAuthAuthorization(OAuthDataController oAuth)
oAuth - OAuthautoRefresh - Whether allow auto refresh the OAuth token when it's expired.public void setOAuthData(BoxOAuthToken data)
public void refresh()
throws AuthFatalFailureException
AuthFatalFailureException - exceptionpublic void initOAuthForRequest()
public void setAuth(IBoxRequest request) throws BoxRestException, AuthFatalFailureException
IBoxRequestAuthsetAuth in interface IBoxRequestAuthsetAuth in class DefaultRequestAuthrequest - IBoxRequestBoxRestException - Exception.AuthFatalFailureException - exceptionCopyright © 2014. All Rights Reserved.