final IAuthSecureStorage authSecureStorage = cachedBoxClient.getSecureStorage();
if (authSecureStorage != null && authSecureStorage.getAuth() != null) {
LOG.debug("Using secure storage for {}", cachedBoxClient);
// authenticate using stored refresh token
boxClient.authenticateFromSecureStorage(authSecureStorage);
} else {
LOG.debug("Using OAuth {}", cachedBoxClient);
// authorize App for user, and create OAuth token with refresh token
final IAuthFlowUI authFlowUI = new LoginAuthFlowUI(configuration, boxClient);