自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
Identity Credential
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
身分憑證 API 提供可安全儲存使用者身分文件的介面。這些 API 會與 credstore
系統服務通訊,而該服務會使用身分憑證 HAL 與安全硬體通訊。
系統會透過 IIdentityCredentialStore
存取身分憑證 HAL,該函式庫提供可安全儲存使用者身分文件的介面。在可行範圍內,請盡量讓與憑證驗證裝置與簽發機構 (IA) 通訊的訊息格式規格和語意用語超出這個 HAL 的範圍。它會提供安全儲存空間介面,但需要憑證專屬的 Android 應用程式,才能實作適合特定憑證類型的呈現和驗證通訊協定和程序。
如要瞭解導入方式和 VTS 測試資訊,請參閱以下連結:
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Identity Credential\n\nThe [Identity\nCredential](https://developer.android.com/reference/android/security/identity/package-summary) APIs provide an interface to a secure store\nfor user identity documents. These APIs communicate with the\n`credstore` system service which in turn use the Identity\nCredential HAL to communicate with Secure Hardware.\n\nThe Identity Credential HAL is accessed through\n`IIdentityCredentialStore` which provides an interface to a secure\nstore for user identity documents. To the extent possible, specification of\nthe message formats and semantics of communication with credential\nverification devices and issuing authorities (IAs) is out of scope for this\nHAL. It provides the interface with secure storage but a credential-specific\nAndroid application are be required to implement the presentation and\nverification protocols and processes appropriate for the specific credential\ntype.\n\nImplementation instructions and VTS test information can be found at:\n\n- [Identity\n Credential HAL, default implementation, and VTS tests](https://android.googlesource.com/platform/hardware/interfaces/+/refs/heads/android16-release/identity/aidl/android/hardware/identity/IIdentityCredentialStore.aidl)"]]