public interface IBoxOAuthManager extends IBoxResourceManager
| Modifier and Type | Method and Description |
|---|---|
BoxOAuthToken |
createOAuth(String code,
String clientId,
String clientSecret,
String redirectUrl) |
BoxOAuthToken |
createOAuth(String code,
String clientId,
String clientSecret,
String redirectUrl,
String deviceId,
String deviceName) |
BoxOAuthToken |
refreshOAuth(String refreshToken,
String clientId,
String clientSecret)
Refresh OAuth.
|
BoxOAuthToken |
refreshOAuth(String refreshToken,
String clientId,
String clientSecret,
String deviceId,
String deviceName)
Refresh OAuth.
|
void |
revokeOAuth(String accessToken,
String clientId,
String clientSecret)
Revoke OAuth.
|
BoxOAuthToken createOAuth(String code, String clientId, String clientSecret, String redirectUrl) throws BoxRestException, BoxServerException, AuthFatalFailureException
code - The authorization code you retrieved previously used to create OAuth.clientId - client idclientSecret - client secretredirectUrl - optional, required only if a redirect URI is not configured at Box Developers Services, use
null if don't want to supply this field.BoxRestException - See BoxRestException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxOAuthToken createOAuth(String code, String clientId, String clientSecret, String redirectUrl, String deviceId, String deviceName) throws BoxRestException, BoxServerException, AuthFatalFailureException
code - The authorization code you retrieved previously used to create OAuth.clientId - client idclientSecret - client secretredirectUrl - optional, required only if a redirect URI is not configured at Box Developers Services, use
null if don't want to supply this field.deviceId - device iddeviceName - device nameBoxRestException - See BoxRestException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxOAuthToken refreshOAuth(String refreshToken, String clientId, String clientSecret, String deviceId, String deviceName) throws BoxRestException, BoxServerException, AuthFatalFailureException
refreshToken - refresh token.clientId - client id.clientSecret - client secret.deviceId - device id.deviceName - device name.BoxRestException - See BoxRestException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.BoxOAuthToken refreshOAuth(String refreshToken, String clientId, String clientSecret) throws BoxRestException, BoxServerException, AuthFatalFailureException
refreshToken - refresh token.clientId - client id.clientSecret - client secret.BoxRestException - See BoxRestException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.void revokeOAuth(String accessToken, String clientId, String clientSecret) throws BoxServerException, BoxRestException, AuthFatalFailureException
accessToken - current access token (to be revoked).clientId - client id.clientSecret - client secret.BoxRestException - See BoxRestException for more info.BoxServerException - See com.box.restclientv2.exceptions.BoxServerException for more info.AuthFatalFailureException - See com.box.restclientv2.exceptions.AuthFatalFailureException for more info.Copyright © 2014. All Rights Reserved.