What is the alternative to the deprecated 'GoogleCredential'?
问题 I'd been employing the following Java method to set a bucket notification in GCS. private void setBucketNotification(String bucketName, String topicId) { List<String> eventType = new ArrayList<>(); eventType.add("OBJECT_FINALIZE"); try { Notification notification = new Notification(); notification.setTopic(topicId); notification.setEventTypes(eventType); notification.setPayloadFormat("JSON_API_V1"); final GoogleCredential googleCredential = GoogleCredential .fromStream(Objects.requireNonNull