Home / Market / credential holder

credential holder

Implement digital credential holder (wallet) registration, presentation, and issuance handling in an Android app using the Jetpack Credential Manager Registry API. Use this skill when building a digital wallet or holder app in an Android project, registering SD-JWT or mdoc credential metadata with RegistryManager and OpenId4VpRegistry, configuring inline issuance entries, registering OpenID4VCI creation options with RegisterCreationOptionsRequest, or handling GET_CREDENTIAL and CREATE_CREDENTIAL

skill★ 108450 dlgithubApache-2.0Install in CosmosUpstream Source

Documentation & Preview

--- name: credential-holder description: Implement digital credential holder (wallet) registration, presentation, and issuance handling in an Android app using the Jetpack Credential Manager Registry API. Use this skill when building a digital wallet or holder app in an Android project, registering SD-JWT or mdoc credential metadata with RegistryManager and OpenId4VpRegistry, configuring inline issuance entries, registering OpenID4VCI creation options with RegisterCreationOptionsRequest, or handling GET_CREDENTIAL and CREATE_CREDENTIAL intents with PendingIntentHandler. Don't use for requesting credentials as a verifier, issuing credentials from an issuer app, passkeys, or carrier TS.43 phone number verification. license: Complete terms in LICENSE.txt metadata: author: Google LLC last-updated: '2026-11-20' keywords:

---

Build an Android digital wallet (holder) app that registers credential metadata (SdJwtEntry and MdocEntry) with Credential Manager using RegistryManager and OpenId4VpRegistry, registers OpenID4VCI creation options with RegisterCreationOptionsRequest, and handles incoming GET_CREDENTIAL presentation and CREATE_CREDENTIAL issuance requests with PendingIntentHandler. When reviewing holder credential storage concepts, presentation flows, or issuance handling, consult About storing digital credentials, Present credentials, and Handle credential issuance. When requesting credentials as a relying party, suggest the credential-verifier skill; when provisioning credentials from an issuer app, suggest the credential-issuer skill.

Prerequisites and setup

| Artifact | Key classes, constructor signatures, and package | |---|---| | androidx.credentials:credentials:1.7.0-alpha03 (or 1.6.0+) | GetCredentialResponse, GetDigitalCredentialOption, DigitalCredential(credentialJson: String), CreateDigitalCredentialRequest, CreateDigitalCredentialResponse(responseJson: String), and ExperimentalDigitalCredentialApi in androidx.credentials; PendingIntentHandler, CallingAppInfo, ProviderGetCredentialRequest, and ProviderCreateCredentialRequest in androidx.credentials.provider; GetCredentialException and CreateCredentialException subtypes in androidx.credentials.exceptions | | androidx.credentials.registry:registry-digitalcredentials-mdoc:1.0.0-alpha05 | MdocEntry(docType: String, fields: List<MdocField>, entryDisplayPropertySet: Set<EntryDisplayProperties>, id: String), MdocField(namespace: String, identifier: String, fieldValue: Any?, fieldDisplayPropertySet: Set<FieldDisplayProperties>), and MdocInlineIssuanceEntry in androidx.credentials.registry.digitalcredentials.mdoc | | androidx.credentials.registry:registry-digitalcredentials-openid:1.0.0-alpha05 | OpenId4VpRegistry(credentialEntries: List<DigitalCredentialEntry>, id: String, intentAction: String = RegistryManager.ACTION_GET_CREDENTIAL, inlineIssuanceEntries: List<InlineIssuanceEntry> = emptyList(), supportedProtocols: List<String> = ...) in androidx.credentials.registry.digitalcredentials.openid4vp | | androidx.credentials.registry:registry-digitalcredentials-sdjwtvc:1.0.0-alpha05 | SdJwtEntry(verifiableCredentialType: String, claims: List<SdJwtClaim>, entryDisplayPropertySet: Set<EntryDisplayProperties>, id: String), SdJwtClaim(path: List<String>, value: Any?, fieldDisplayPropertySet: Set<FieldDisplayProperties>, isSelectivelyDisclosable: Boolean = true), and SdJwtInlineIssuanceEntry in androidx.credentials.registry.digitalcredentials.sdjwt | | androidx.credentials.registry:registry-provider:1.0.0-alpha05 | RegistryManager, RegisterCreationOptionsRequest(type: String, id: String, creationOptions: ByteArray, matcher: ByteArray, intentAction: String = RegistryManager.ACTION_CREATE_CREDENTIAL), ProviderGetCredentialRequest.selectedCredentialSet, ProviderGetCredentialRequest.selectedEntryId, and ProviderCreateCredentialRequest.selectedEntryId in androidx.credentials.registry.provider; DigitalCredentialEntry, EntryDisplayProperties, FieldDisplayProperties, InlineIssuanceEntry, InlineIssuanceEntry.InlineIssuanceDisplayProperties, VerificationEntryDisplayProperties(title: CharSequence, subtitle: CharSequence?, icon: Bitmap, ...) (icon is non-null android.graphics.Bitmap), and VerificationFieldDisplayProperties(displayName: CharSequence, displayValue: CharSequence?) in androidx.credentials.registry.provider.digitalcredentials | | androidx.credentials.registry:registry-provider-play-services:1.0.0-alpha05 | Google Play services provider integration for Credential Manager Registry |

Expected inputs and file scope

Codebase exploration

Before modifying files, inspect the Android project:

  1. Validate baseline build and inspect configuration: Run ./gradlew assembleDebug to confirm the project compiles before making changes, and check app/build.gradle.kts, gradle/libs.versions.toml, and app/src/main/AndroidManifest.xml for existing androidx.credentials or androidx.credentials.registry dependencies and exported holder activities.
  2. Locate wallet storage and UI entry points: Identify where credentials are stored and locate the primary Activity or Compose screen (such as MainActivity.kt or TasksScreen.kt) to wire credential registration and wallet UI state.

Critical implementation mandates

Follow the implementation steps and code snippets in About storing digital credentials, Present credentials, and Handle credential issuance, and apply these non-obvious rules:

coordinates:** BigInteger.toByteArray() returns a two's-complement signed array that prepends a leading 0x00 sign byte when the most significant bit is set (producing 33 bytes instead of 32 bytes for P-256). Strip any leading 0x00 sign byte before Base64url-encoding JWK x and y coordinates so issuer key attestation verification doesn't fail.

Troubleshooting

| Symptom | Cause | Fix | |---|---|---| | Experimental API compilation error | GetDigitalCredentialOption, DigitalCredential, CreateDigitalCredentialRequest, and CreateDigitalCredentialResponse require opt-in | Add @OptIn(androidx.credentials.ExperimentalDigitalCredentialApi::class) to the calling class or function. | | Unresolved reference OpenId4VpRegistry or SdJwtEntry | Importing .openid or .sdjwtvc instead of the actual package names | Import OpenId4VpRegistry from androidx.credentials.registry.digitalcredentials.openid4vp