Skip to content

Commit 50f5a61

Browse files
feat: make tryRestoreUsingAccessTokenCache in Box API connection public (#1272)
Co-authored-by: David Mondejar <[email protected]>
1 parent 5eb4c93 commit 50f5a61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/com/box/sdk/BoxDeveloperEditionAPIConnection.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,10 @@ private String getAccessTokenCacheKey() {
446446
this.entityType.toString(), this.entityID);
447447
}
448448

449-
private void tryRestoreUsingAccessTokenCache() {
449+
/**
450+
* Tries to restore the connection using the access token cache.
451+
*/
452+
public void tryRestoreUsingAccessTokenCache() {
450453
if (this.accessTokenCache == null) {
451454
//no cache specified so force authentication
452455
this.authenticate();

0 commit comments

Comments
 (0)