public class SharedLinkAPIConnection extends BoxAPIConnection
BoxAPIConnection.ResourceLinkTypeDEFAULT_BASE_AUTHORIZATION_URL, DEFAULT_HOSTNAME_VERIFIER, DEFAULT_MAX_RETRIES, DEFAULT_TRUST_MANAGER| Constructor and Description | 
|---|
| SharedLinkAPIConnection(BoxAPIConnection connection,
                       String sharedLink)Deprecated.  | 
| SharedLinkAPIConnection(BoxAPIConnection connection,
                       String sharedLink,
                       String sharedLinkPassword)Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | canRefresh()Deprecated.  Determines if this connection's access token can be refreshed. | 
| String | getAccessToken()Deprecated.  Gets an access token that can be used to authenticate an API request. | 
| boolean | getAutoRefresh()Deprecated.  Gets whether or not automatic refreshing of this connection's access token is enabled. | 
| String | getBaseUploadURL()Deprecated.  Gets the base upload URL that's used when performing file uploads to Box. | 
| String | getBaseURL()Deprecated.  Gets the base URL that's used when sending requests to the Box API. | 
| long | getExpires()Deprecated.  Gets the amount of time for which this connection's access token is valid. | 
| int | getMaxRetryAttempts()Deprecated.  Gets the maximum number of times an API request will be retried after an error response
 is received. | 
| String | getRefreshToken()Deprecated.  Gets a refresh token that can be used to refresh an access token. | 
| RequestInterceptor | getRequestInterceptor()Deprecated.  Gets the RequestInterceptor associated with this API connection. | 
| String | getUserAgent()Deprecated.  Gets the user agent that's used when sending requests to the Box API. | 
| boolean | needsRefresh()Deprecated.  Determines if this connection's access token has expired and needs to be refreshed. | 
| void | refresh()Deprecated.  Refresh's this connection's access token using its refresh token. | 
| void | setAccessToken(String accessToken)Deprecated.  Sets the access token to use when authenticating API requests. | 
| void | setAutoRefresh(boolean autoRefresh)Deprecated.  Enables or disables automatic refreshing of this connection's access token. | 
| void | setBaseUploadURL(String baseUploadURL)Deprecated.  Sets the base upload URL to be used when performing file uploads to Box. | 
| void | setBaseURL(String baseURL)Deprecated.  Sets the base URL to be used when sending requests to the Box API. | 
| void | setExpires(long milliseconds)Deprecated.  Sets the amount of time for which this connection's access token is valid before it must be refreshed. | 
| void | setMaxRetryAttempts(int attempts)Deprecated.  Sets the maximum number of times an API request will be retried after an error response
 is received. | 
| void | setRefreshToken(String refreshToken)Deprecated.  Sets the refresh token to use when refreshing an access token. | 
| void | setUserAgent(String userAgent)Deprecated.  Sets the user agent to be used when sending requests to the Box API. | 
addListener, asSelf, asUser, authenticate, configureSslCertificatesValidation, createNewCall, createTokenRequest, determineResourceLinkType, enableNotifications, extractTokens, getAuthorizationURL, getAuthorizationURL, getBaseAppUrl, getClientID, getClientSecret, getConnectTimeout, getHostnameVerifier, getKeyValueOrDefault, getLastRefresh, getLowerScopedToken, getProxy, getProxyPassword, getProxyUsername, getReadTimeout, getRefreshLock, getRevokeURL, getTokenURL, getTrustManager, getUseZstdCompression, modifyHttpClientBuilder, notifyError, notifyRefresh, removeCustomHeader, removeListener, restore, restore, revokeToken, save, setBaseAppUrl, setBaseAuthorizationURL, setConnectTimeout, setCustomHeader, setLastRefresh, setProxy, setProxyAuthenticator, setProxyBasicAuthentication, setProxyPassword, setProxyUsername, setReadTimeout, setRequestInterceptor, setUseZstdCompression, suppressNotificationspublic SharedLinkAPIConnection(BoxAPIConnection connection, String sharedLink)
public SharedLinkAPIConnection(BoxAPIConnection connection, String sharedLink, String sharedLinkPassword)
public long getExpires()
BoxAPIConnectiongetExpires in class BoxAPIConnectionpublic void setExpires(long milliseconds)
BoxAPIConnectionsetExpires in class BoxAPIConnectionmilliseconds - the number of milliseconds for which the access token is valid.public String getBaseURL()
BoxAPIConnectionBoxAPIConnection.baseURL and BoxAPIConnection.API_VERSION.
 The default value is "https://api.box.com/2.0/".getBaseURL in class BoxAPIConnectionpublic void setBaseURL(String baseURL)
BoxAPIConnectionBoxAPIConnection.getRevokeURL()
 and BoxAPIConnection.getTokenURL() are constructed.setBaseURL in class BoxAPIConnectionbaseURL - a base URLpublic String getBaseUploadURL()
BoxAPIConnectionBoxAPIConnection.baseUploadURL and BoxAPIConnection.API_VERSION.getBaseUploadURL in class BoxAPIConnectionpublic void setBaseUploadURL(String baseUploadURL)
BoxAPIConnectionsetBaseUploadURL in class BoxAPIConnectionbaseUploadURL - a base upload URL.public String getUserAgent()
BoxAPIConnectiongetUserAgent in class BoxAPIConnectionpublic void setUserAgent(String userAgent)
BoxAPIConnectionsetUserAgent in class BoxAPIConnectionuserAgent - the user agent.public String getAccessToken()
BoxAPIConnectiongetAccessToken().getAccessToken in class BoxAPIConnectionpublic void setAccessToken(String accessToken)
BoxAPIConnectionsetAccessToken in class BoxAPIConnectionaccessToken - a valid access token to use when authenticating API requests.public String getRefreshToken()
BoxAPIConnectiongetRefreshToken in class BoxAPIConnectionpublic void setRefreshToken(String refreshToken)
BoxAPIConnectionsetRefreshToken in class BoxAPIConnectionrefreshToken - a valid refresh token.public boolean getAutoRefresh()
BoxAPIConnectiongetAutoRefresh in class BoxAPIConnectionpublic void setAutoRefresh(boolean autoRefresh)
BoxAPIConnectionsetAutoRefresh in class BoxAPIConnectionautoRefresh - true to enable auto token refresh; otherwise false.public int getMaxRetryAttempts()
getMaxRetryAttempts in class BoxAPIConnectionpublic void setMaxRetryAttempts(int attempts)
setMaxRetryAttempts in class BoxAPIConnectionattempts - the maximum number of request attempts.public boolean canRefresh()
BoxAPIConnectioncanRefresh in class BoxAPIConnectionpublic boolean needsRefresh()
BoxAPIConnectionneedsRefresh in class BoxAPIConnectionpublic void refresh()
BoxAPIConnectionrefresh in class BoxAPIConnectionpublic RequestInterceptor getRequestInterceptor()
BoxAPIConnectiongetRequestInterceptor in class BoxAPIConnection