Request

A Digital Credentials API request Credential Manager handed the wallet's activity, from the page or app at origin.

Properties

Link copied to clipboard

The request's data member, as JSON.

Link copied to clipboard

Whether it's an org-iso-mdoc request, for startMdocPresentation.

Link copied to clipboard

The caller's origin, as the platform vouches for it: a web origin for a browser on the privileged-browsers list, else android:apk-key-hash: and the calling app's signing certificate's SHA-256, base64url.

Link copied to clipboard

Its protocol: openid4vp-v1-…, or MDOC_PROTOCOL.

Link copied to clipboard

The credential the holder picked in the system's chooser, if it says.

Functions

Link copied to clipboard

Opens an org-iso-mdoc request for the holder's consent. Only a web origin can be bound to one: an app's origin fails with WalletException.Code.invalidInput.

Link copied to clipboard
suspend fun startPresentation(wallet: Wallet): Presentation

Opens an OpenID4VP request for the holder's consent.