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 RegistryManager requests.

Classes

RegisterCredentialsRequest

A request to register credentials with Credential Manager.

RegisterCredentialsResponse

The result of calling RegistryManager.registerCredentials.

RegistryManager

APIs for managing credential registries that are registered with the Credential Manager.

Exceptions

RegisterCredentialsConfigurationException

During the RegistryManager.registerCredentials 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.

RegisterCredentialsException

Represents an error thrown during a RegistryManager.registerCredentials transaction.

RegisterCredentialsUnknownException

Thrown when the RegistryManager.registerCredentials transaction fails with no more detailed information.

Extension properties summary

String?

Returns the id of the entry selected by the user.

Extension properties

val ProviderGetCredentialRequest.selectedEntryIdString?

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.