OAuth 1.0a 和适用于 Java 的 Google OAuth 客户端库
bookmark_borderbookmark
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
OAuth 1.0 是一项标准规范,可让最终用户安全地授权客户端应用访问受保护的服务器端资源。
重要通告
Java 版 Google OAuth 客户端库提供的 OAuth 1.0a 支持为 @Beta 版。
请勿使用 OAuth 1.0 访问 Google API,因为 Google 已弃用 OAuth 1.0,取而代之的是 OAuth 2.0。如果您当前有应用使用 OAuth 1.0 访问 Google API,请参阅从 OAuth 1.0 迁移到 OAuth 2.0。
使用 OAuth 1.0
Java 版 Google OAuth 客户端库支持 OAuth 1.0a (@Beta) 的两种签名方法,我们提供这两种方法用于非 Google 服务:
如需了解详情,请参阅 OAuth 1.0 软件包的 Javadoc。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-20。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-20。"],[[["OAuth 1.0 is a standard for secure authorization of client applications to access protected server resources."],["Google's OAuth Client Library for Java provides beta support for OAuth 1.0a, but it's not for use with Google APIs."],["Google has deprecated OAuth 1.0 for its APIs, recommending migration to OAuth 2.0 instead."],["The library supports HMAC-SHA1 and RSA-SHA1 signature methods for OAuth 1.0a for non-Google services."]]],[]]