透過集合功能整理內容
你可以依據偏好儲存及分類內容。
憑證登錄檔
為解決這些問題,我們新增了新的註冊機制,讓應用程式以保護隱私的方式提供數位憑證。整體來說,供應商應用程式會透過 Credential Manager,預先註冊所有候選數位憑證。Credential Manager 收到特定數位憑證的應用程式要求後,就會在沙箱中執行憑證比對和使用者選取器 UI。
最近更新時間 |
穩定版 |
候選版 |
Beta 版 |
Alpha 版 |
2024 年 10 月 16 日 |
- |
- |
- |
1.0.0-alpha01 |
宣告依附元件
如要為憑證註冊表新增依附元件,您必須將 Google Maven 存放區新增至專案。詳情請參閱 Google 的 Maven 存放區。
在應用程式或模組的 build.gradle
檔案中,新增所需構件的依附元件:
Groovy
dependencies {
// Use to implement credentials registrys
implementation "androidx.credentials.registry:registry-digitalcredentials-mdoc:1.0.0-alpha01"
implementation "androidx.credentials.registry:registry-digitalcredentials-preview:1.0.0-alpha01"
implementation "androidx.credentials.registry:registry-provider:1.0.0-alpha01"
implementation "androidx.credentials.registry:registry-provider-play-services:1.0.0-alpha01"
}
Kotlin
dependencies {
// Use to implement credentials registrys
implementation("androidx.credentials.registry:registry-digitalcredentials-mdoc:1.0.0-alpha01")
implementation("androidx.credentials.registry:registry-digitalcredentials-preview:1.0.0-alpha01")
implementation("androidx.credentials.registry:registry-provider:1.0.0-alpha01")
implementation("androidx.credentials.registry:registry-provider-play-services:1.0.0-alpha01")
}
如要進一步瞭解依附元件,請參閱「新增建構依附元件」一文。
意見回饋
您的意見可協助我們改善 Jetpack。如果您發現新問題,或是有改進這個程式庫的建議,請告訴我們。回報新問題前,請先查看這個程式庫的現有問題。只要按一下星號按鈕,即可投票給現有的問題。
建立新問題
詳情請參閱 Issue Tracker 說明文件。
憑證登錄 1.0
1.0.0-alpha01 版
2024 年 10 月 16 日
發布 androidx.credentials.registry:registry-*:1.0.0-alpha01
。1.0.0-alpha01 版包含這些修訂版本。
新功能
- 支援新的 Credential Manager 供應商註冊資料庫:讓提供者透過 Credential Manager 預先註冊憑證中繼資料。如果之後收到應用程式要求,Credential Manager 就能向使用者顯示。
- 新增 ISO/IEC mdoc 憑證 API,用於註冊 mdoc 憑證
- 另外,我們也新增了以預覽通訊協定為基礎的註冊表,以示範端對端功能
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。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,["# credentials registry\n====================\n\nAPI Reference \n[androidx.credentials.registry](/reference/kotlin/androidx/credentials/registry/package-summary) \nTo solve for these, we are adding a new registry mechanism that allows an app to provide digital credentials in a privacy-preserving way. At a high level, the provider app will be pre-registering all their candidate digital credentials with the Credential Manager; When Credential Manager receives an app request for a specific digital credential, it will run the credential matching and user selector UI in a sandbox. \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|------------------|----------------|-------------------|--------------|--------------------------------------------------------------------------------|\n| October 16, 2024 | - | - | - | [1.0.0-alpha01](/jetpack/androidx/releases/credentials-registry#1.0.0-alpha01) |\n\nDeclaring dependencies\n----------------------\n\nTo add a dependency on credentials registry, you must add the Google Maven repository to your\nproject. Read [Google's Maven repository](/studio/build/dependencies#google-maven)\nfor more information.\n\nAdd the dependencies for the artifacts you need in the `build.gradle` file for\nyour app or module: \n\n### Groovy\n\n```groovy\ndependencies {\n // Use to implement credentials registrys\n\n implementation \"androidx.credentials.registry:registry-digitalcredentials-mdoc:1.0.0-alpha01\"\n implementation \"androidx.credentials.registry:registry-digitalcredentials-preview:1.0.0-alpha01\"\n implementation \"androidx.credentials.registry:registry-provider:1.0.0-alpha01\"\n implementation \"androidx.credentials.registry:registry-provider-play-services:1.0.0-alpha01\"\n\n}\n```\n\n### Kotlin\n\n```kotlin\ndependencies {\n // Use to implement credentials registrys\n\n implementation(\"androidx.credentials.registry:registry-digitalcredentials-mdoc:1.0.0-alpha01\")\n implementation(\"androidx.credentials.registry:registry-digitalcredentials-preview:1.0.0-alpha01\")\n implementation(\"androidx.credentials.registry:registry-provider:1.0.0-alpha01\")\n implementation(\"androidx.credentials.registry:registry-provider-play-services:1.0.0-alpha01\")\n\n}\n```\n\nFor more information about dependencies, see [Add build dependencies](/studio/build/dependencies).\n\nFeedback\n--------\n\nYour feedback helps make Jetpack better. Let us know if you discover new issues or have\nideas for improving this library. Please take a look at the\n[existing issues](https://issuetracker.google.com/issues?q=componentid:1301097%20status:open)\nin this library before you create a new one. You can add your vote to an existing issue by\nclicking the star button.\n\n[Create a new issue](https://issuetracker.google.com/issues/new?component=1301097&template=1773864)\n\nSee the [Issue Tracker documentation](https://developers.google.com/issue-tracker)\nfor more information.\n\nCredentials Registry 1.0\n------------------------\n\n### Version 1.0.0-alpha01\n\nOctober 16, 2024\n\n`androidx.credentials.registry:registry-*:1.0.0-alpha01` is released. Version 1.0.0-alpha01 contains [these commits](https://android.googlesource.com/platform/frameworks/support/+log/b8a68b0896897fa158508d73a31998a26161d9a7/credentials/registry).\n\n**New Features**\n\n- New Credential Manager provider registry support: allow providers to pre-register credential metadata with Credential Manager which can be later surfaced to the user by the Credential Manager upon an incoming app request.\n- Added ISO/IEC mdoc credential APIs for registering mdoc credentials\n- Also added a preview protocol based registry to demonstrate the end-to-end capability"]]