@OAuth2(friendlyName="OAuth 2.0", authorizationUrl="https://www.box.com/api/oauth2/authorize", accessTokenUrl="https://www.box.com/api/oauth2/token", accessTokenRegex="\"access_token\"[ ]*:[ ]*\"([^\\\"]*)\"", expirationRegex="\"expires_in\"[ ]*:[ ]*([\\d]*)", refreshTokenRegex="\"refresh_token\"[ ]*:[ ]*\"([^\\\"]*)\"") public class OAuth2Config extends AbstractConfig
Constructor and Description |
---|
OAuth2Config() |
Modifier and Type | Method and Description |
---|---|
String |
getAccessToken() |
String |
getBaseUrl() |
String |
getClientId() |
String |
getClientSecret() |
String |
getRefreshToken() |
String |
getUploadUrl() |
boolean |
getUseGzip() |
void |
postAuthorize() |
void |
setAccessToken(String accessToken) |
void |
setBaseUrl(String baseUrl) |
void |
setClientId(String clientId) |
void |
setClientSecret(String clientSecret) |
void |
setRefreshToken(String refreshToken) |
void |
setUploadUrl(String uploadUrl) |
void |
setUseGzip(boolean useGzip) |
getAssignmentclient, getBoxAPIConnection, getCollaborationClient, getCommentClient, getFileClient, getFolderClient, getGroupClient, getMembershipClient, getTaskClient, getTrashClient, getUserClient, getVersionClient, setBoxAPIConnection
@OAuthPostAuthorization public void postAuthorize()
public String getClientId()
public void setClientId(String clientId)
public String getClientSecret()
public void setClientSecret(String clientSecret)
public String getAccessToken()
public void setAccessToken(String accessToken)
public String getBaseUrl()
public void setBaseUrl(String baseUrl)
public String getUploadUrl()
public void setUploadUrl(String uploadUrl)
public boolean getUseGzip()
public void setUseGzip(boolean useGzip)
public String getRefreshToken()
public void setRefreshToken(String refreshToken)
Copyright © 2010–2016. All rights reserved.