From 50f5a61184bd1a17a17e811536166f9f8e081a13 Mon Sep 17 00:00:00 2001 From: Minh Nguyen Cong Date: Wed, 20 Nov 2024 12:09:06 +0100 Subject: [PATCH] feat: make `tryRestoreUsingAccessTokenCache` in Box API connection public (#1272) Co-authored-by: David Mondejar --- .../java/com/box/sdk/BoxDeveloperEditionAPIConnection.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/box/sdk/BoxDeveloperEditionAPIConnection.java b/src/main/java/com/box/sdk/BoxDeveloperEditionAPIConnection.java index 485638067..630e9bb92 100644 --- a/src/main/java/com/box/sdk/BoxDeveloperEditionAPIConnection.java +++ b/src/main/java/com/box/sdk/BoxDeveloperEditionAPIConnection.java @@ -446,7 +446,10 @@ private String getAccessTokenCacheKey() { this.entityType.toString(), this.entityID); } - private void tryRestoreUsingAccessTokenCache() { + /** + * Tries to restore the connection using the access token cache. + */ + public void tryRestoreUsingAccessTokenCache() { if (this.accessTokenCache == null) { //no cache specified so force authentication this.authenticate();