What is the alternative to the deprecated #39;GoogleCredential#39;?(已弃用的“GoogleCredential的替代方案是什么?)
问题描述
I'd been employing the following Java method to set a bucket notification in GCS.
It's been working fine so far, but lately, I'm getting a complaint regarding the deprecation of GoogleCredential
class, and tried doing some research with a hope to find a possible replacement, but couldn't find anything. Can anyone help me point in the right direction?
After a while of looking around, I managed to fix it, using GoogleCredentials
and HttpRequestInitializer
. The code changes are as follows.
becomes
这篇关于已弃用的“GoogleCredential"的替代方案是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!