OAuth 1.0a 和 Java 適用的 Google OAuth 用戶端程式庫
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。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-07-10 (世界標準時間)。
[null,null,["上次更新時間:2024-07-10 (世界標準時間)。"],[[["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."]]],[]]