public interface IBoxOAuthManager extends IBoxResourceManager
| Modifier and Type | Method and Description |
|---|---|
BoxOAuthToken |
createOAuth(java.lang.String code,
java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String redirectUrl) |
BoxOAuthToken |
createOAuth(java.lang.String code,
java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String redirectUrl,
java.lang.String deviceId,
java.lang.String deviceName) |
BoxOAuthToken |
refreshOAuth(java.lang.String refreshToken,
java.lang.String clientId,
java.lang.String clientSecret)
Refresh OAuth.
|
BoxOAuthToken |
refreshOAuth(java.lang.String refreshToken,
java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String deviceId,
java.lang.String deviceName)
Refresh OAuth.
|
void |
revokeOAuth(java.lang.String accessToken,
java.lang.String clientId,
java.lang.String clientSecret)
Revoke OAuth.
|
BoxOAuthToken createOAuth(java.lang.String code, java.lang.String clientId, java.lang.String clientSecret, java.lang.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(java.lang.String code, java.lang.String clientId, java.lang.String clientSecret, java.lang.String redirectUrl, java.lang.String deviceId, java.lang.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(java.lang.String refreshToken, java.lang.String clientId, java.lang.String clientSecret, java.lang.String deviceId, java.lang.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(java.lang.String refreshToken, java.lang.String clientId, java.lang.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(java.lang.String accessToken,
java.lang.String clientId,
java.lang.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.