androidx.credentials.registry.provider
Library that allows provider apps to register digital user credentials with CredentialManager to support smooth sign-in, verification, and other user experience
Interfaces
RegistryManagerProvider | Provider interface to be implemented by a system registry manager service provider that will fulfill |
Classes
ClearCredentialRegistryRequest | A request to clear the credential registries stored for your app, which were registered using the |
ClearCredentialRegistryRequest.PerTypeConfig | Configures how to clear the registries for a given type. |
ClearCredentialRegistryResponse | A result of clearing credential registries. |
RegisterCredentialsRequest | A request to register credentials with Credential Manager. |
RegisterCredentialsResponse | The result of calling |
RegistryManager | APIs for managing credential registries that are registered with the Credential Manager. |
SelectedCredential | A credential selected within a |
SelectedCredentialSet | Contains information about the user selection result on the Credential Manager UI. |
Exceptions
ClearCredentialRegistryConfigurationException | During the |
ClearCredentialRegistryException | Represents an error thrown during a |
ClearCredentialRegistryUnknownException | Thrown when the |
RegisterCredentialsConfigurationException | During the |
RegisterCredentialsException | Represents an error thrown during a |
RegisterCredentialsUnknownException | Thrown when the |
Extension properties summary
SelectedCredentialSet? | Returns credential set selected by the user. |
String? | Returns the id of the entry selected by the user. |
Extension properties
selectedCredentialSet
val ProviderGetCredentialRequest.selectedCredentialSet: SelectedCredentialSet?
Returns credential set selected by the user.
A null return means that the credential user case isn't registry based. In other words, it means the credentials weren't registered through the RegistryManager.registerCredentials API.
For how to handle a user selection and extract the ProviderGetCredentialRequest containing the selection information, see RegistryManager.ACTION_GET_CREDENTIAL.
selectedEntryId
val ProviderGetCredentialRequest.selectedEntryId: String?
Returns 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.
A 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 does not have an id property and so this getter will return null if the selected entry was a password credential.
For how to handle a user selection and extract the ProviderGetCredentialRequest containing the selection information, see RegistryManager.ACTION_GET_CREDENTIAL.