CredentialPresentationRequest

Query-language-independent representation of a verifier's credential requirements.

A request describes what may satisfy the verifier; it does not contain the holder's choice. Match it against the credential store to present candidates to the user, then call the subtype's toCredentialPresentation overload with the selected submissions. Calling toCredentialPresentation without a selection asks the holder to derive a default submission while creating the response.

Inheritors

Types

Link copied to clipboard
@Serializable
value class DCQLRequest(val dcqlQuery: DCQLQuery) : CredentialPresentationRequest

Credential requirements expressed as a DCQL query, as used by OpenID4VP.

Link copied to clipboard
@Serializable
data class IsoDeviceRetrieval(val deviceRequest: DeviceRequest) : CredentialPresentationRequest

Device Retrieval according to ISO 18013-5, used for proximity and ISO 18013-7 Annex C over DCAPI.

Link copied to clipboard
@Serializable
data class PresentationExchangeRequest(val presentationDefinition: PresentationDefinition, val fallbackFormatHolder: FormatHolder? = null) : CredentialPresentationRequest

Presentation Exchange, formerly used by OpenID4VP, now deprecated.

Functions

Link copied to clipboard

Creates a presentation instruction that lets the holder derive a default submission.