AndroidDigitalCredentialProvider

Android framework boundary for official holder Activity request and response handling.

Functions

Link copied to clipboard
fun extract(intent: Intent, privilegedAppsJson: String): AndroidDigitalCredentialProviderInput

Locates the protocol request Credential Manager's selection belongs to and derives the origin from authenticated caller data. A populated privileged origin is rejected unless the caller package and signing certificate match privilegedAppsJson.

Link copied to clipboard
fun setCancellation(resultIntent: Intent)

Maps explicit user refusal to the platform cancellation exception.

Link copied to clipboard
fun setFailure(resultIntent: Intent, message: String = "Digital credential presentation failed")

Maps malformed, unsupported, or failed requests without leaking sensitive inputs.

Link copied to clipboard

Writes the official Credential Manager result payload to resultIntent.