public class OAuthAuthorization extends DefaultRequestAuth
AUTH_HEADER_NAME
Constructor and Description |
---|
OAuthAuthorization(OAuthDataController oAuth) |
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)
public void setOAuthData(BoxOAuthToken data)
public void refresh() throws AuthFatalFailureException
AuthFatalFailureException
- exceptionpublic void initOAuthForRequest()
public void setAuth(IBoxRequest request) throws BoxRestException, AuthFatalFailureException
IBoxRequestAuth
setAuth
in interface IBoxRequestAuth
setAuth
in class DefaultRequestAuth
request
- IBoxRequestBoxRestException
- Exception.AuthFatalFailureException
- exception