From 1f3ddff9c784434cce8cf4389b92deda00e497f8 Mon Sep 17 00:00:00 2001 From: David Mondejar Date: Mon, 11 Nov 2024 18:28:40 +0700 Subject: [PATCH] feat: allow to modify the underlying okHttpClient from the BoxDeveloperEditionAPIConnection when using factory method --- .../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();