Presentation Exchange
object PresentationExchange
The PresentationExchange
object provides functions for working with Verifiable Credentials and Presentation Definitions during a presentation exchange process.
Functions
Link copied to clipboard
fun createPresentationFromCredentials(vcJwts: Iterable<String>, presentationDefinition: PresentationDefinitionV2): PresentationSubmission
Creates a Presentation Submission in which the list of Verifiable Credentials JWTs (VCs) fulfills the given Presentation Definition. Presentation Definition.
Link copied to clipboard
fun satisfiesPresentationDefinition(vcJwts: Iterable<String>, presentationDefinition: PresentationDefinitionV2)
Validates a list of Verifiable Credentials (VCs) against a specified Presentation Definition.
Link copied to clipboard
fun selectCredentials(vcJwts: Iterable<String>, presentationDefinition: PresentationDefinitionV2): List<String>
Selects credentials that satisfy a given presentation definition.
Link copied to clipboard
Validates whether an object is usable as a presentation definition or not.
Link copied to clipboard
Validates whether an object is usable as a presentation submission or not.