code: public static BoxDeveloperEditionAPIConnection getAppEnterpriseConnection(String enterpriseId, String clientId,
              String clientSecret, JWTEncryptionPreferences encryptionPref, IAccessTokenCache accessTokenCache) {
  
          BoxDeveloperEditionAPIConnection connection = new BoxDeveloperEditionAPIConnection(enterpriseId,
                  DeveloperEditionEntityType.ENTERPRISE, clientId, clientSecret, encryptionPref, accessTokenCache);
  
          connection.tryRestoreUsingAccessTokenCache();
  
          return connection;
      }
docs: Creates a new Box Developer Edition connection with enterprise token leveraging an access token cache.
  @param enterpriseId          the enterprise ID to use for requesting access token.
  @param clientId              the client ID to use when exchanging the JWT assertion for an access token.
  @param clientSecret          the client secret to use when exchanging the JWT assertion for an access token.
  @param encryptionPref        the encryption preferences for signing the JWT.
  @param accessTokenCache      the cache for storing access token information (to minimize fetching new tokens)
  @return a new instance of BoxAPIConnection.