Stay organized with collections
Save and categorize content based on your preferences.
Library that allows provider apps to register digital user credentials with CredentialManager to support smooth sign-in, verification, and other user experience
Interfaces
Classes
Exceptions
Extension properties summary
String? |
Returns the id of the entry selected by the user.
|
Extension properties
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[],null,["# androidx.credentials.registry.provider\n======================================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/credentials/registry/provider/package-summary \"View this page in Java\")\n\nLibrary that allows provider apps to register digital user credentials with CredentialManager to support smooth sign-in, verification, and other user experience\n\nInterfaces\n----------\n\n|-------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [RegistryManagerProvider](/reference/kotlin/androidx/credentials/registry/provider/RegistryManagerProvider) | Provider interface to be implemented by a system registry manager service provider that will fulfill [RegistryManager](/reference/kotlin/androidx/credentials/registry/provider/RegistryManager) requests. |\n\nClasses\n-------\n\n|---------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [RegisterCredentialsRequest](/reference/kotlin/androidx/credentials/registry/provider/RegisterCredentialsRequest) | A request to register credentials with Credential Manager. |\n| [RegisterCredentialsResponse](/reference/kotlin/androidx/credentials/registry/provider/RegisterCredentialsResponse) | The result of calling [RegistryManager.registerCredentials](/reference/kotlin/androidx/credentials/registry/provider/RegistryManager#registerCredentials(androidx.credentials.registry.provider.RegisterCredentialsRequest)). |\n| [RegistryManager](/reference/kotlin/androidx/credentials/registry/provider/RegistryManager) | APIs for managing credential registries that are registered with the Credential Manager. |\n\nExceptions\n----------\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [RegisterCredentialsConfigurationException](/reference/kotlin/androidx/credentials/registry/provider/RegisterCredentialsConfigurationException) | During the [RegistryManager.registerCredentials](/reference/kotlin/androidx/credentials/registry/provider/RegistryManager#registerCredentials(androidx.credentials.registry.provider.RegisterCredentialsRequest)) transaction, this is thrown when configurations are mismatched for the RegistryManager service, typically indicating the service provider dependency is missing in the manifest or some system service is not enabled. |\n| [RegisterCredentialsException](/reference/kotlin/androidx/credentials/registry/provider/RegisterCredentialsException) | Represents an error thrown during a [RegistryManager.registerCredentials](/reference/kotlin/androidx/credentials/registry/provider/RegistryManager#registerCredentials(androidx.credentials.registry.provider.RegisterCredentialsRequest)) transaction. |\n| [RegisterCredentialsUnknownException](/reference/kotlin/androidx/credentials/registry/provider/RegisterCredentialsUnknownException) | Thrown when the [RegistryManager.registerCredentials](/reference/kotlin/androidx/credentials/registry/provider/RegistryManager#registerCredentials(androidx.credentials.registry.provider.RegisterCredentialsRequest)) transaction fails with no more detailed information. |\n\nExtension properties summary\n----------------------------\n\n|--------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?` | [ProviderGetCredentialRequest](/reference/kotlin/androidx/credentials/provider/ProviderGetCredentialRequest)`.`[selectedEntryId](/reference/kotlin/androidx/credentials/registry/provider/package-summary#(androidx.credentials.provider.ProviderGetCredentialRequest).selectedEntryId()) Returns the id of the entry selected by the user. |\n\nExtension properties\n--------------------\n\n### selectedEntryId\n\nArtifact: [androidx.credentials.registry:registry-provider](/jetpack/androidx/releases/credentials-registry) \n[View Source](https://cs.android.com/search?q=file:androidx/credentials/registry/provider/ProviderGetCredentialRequest.kt+symbol:selectedEntryId) \n\n```\nval ProviderGetCredentialRequest.selectedEntryId: String?\n```\n\nReturns the id of the entry selected by the user. For example, for a digital credential entry, this maps to the corresponding entry's [DigitalCredentialEntry.id](/reference/kotlin/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialEntry#id()).\n\nA null return means that entry ID isn't supported for the given type of the use case at all. For example, a [androidx.credentials.provider.PasswordCredentialEntry](/reference/kotlin/androidx/credentials/provider/PasswordCredentialEntry) does not have an id property and so this getter will return null if the selected entry was a password credential.\n\nFor how to handle a user selection and extract the [ProviderGetCredentialRequest](/reference/kotlin/androidx/credentials/provider/ProviderGetCredentialRequest) containing the selection information, see [RegistryManager.ACTION_GET_CREDENTIAL](/reference/kotlin/androidx/credentials/registry/provider/RegistryManager#ACTION_GET_CREDENTIAL())."]]