/* -------------------------------------------------------------------------------- ------------- Ċ Ġ* Ġ ĠCopyright Ġ( c ) ĠMicrosoft ĠCorporation . ĠAll Ġrights Ġreserved . Ċ Ġ* Ġ ĠLicensed Ġunder Ġthe ĠMIT ĠLicense . ĠSee ĠLicense . txt Ġin Ġthe Ġproject Ġroot Ġfor Ġlicense Ġinformation . Ċ Ġ* -------------------------------------------------------------------------------- ------------ */ Ċ Ċ package Ġcom . microsoft . did . sdk . credential . service Ċ Ċ import Ġcom . microsoft . did . sdk . credential . models . Ver ifiable Credential Ċ import Ġcom . microsoft . did . sdk . credential . service . models . at test ations . Presentation At testation Ċ import Ġcom . microsoft . did . sdk . credential . service . models . presentation exchange . Credential Presentation Input Descriptor Ċ import Ġcom . microsoft . did . sdk . util . cont ro lf low . Validator Exception Ċ Ċ /** Ċ Ġ* ĠResponse Ġformed Ġfrom Ġa ĠRequest . Ċ Ġ* Ċ Ġ* Ġ@ param Ġrequest Ġrequest Ġfrom Ġwhich Ġresponse Ġis Ġcreated Ċ Ġ* Ġ@ param Ġaudience Ġentity Ġto Ġsend Ġthe Ġresponse Ġto . Ċ Ġ*/ Ċ sealed Ġclass ĠResponse ( open Ġval Ġrequest : ĠRequest , Ġval Ġaudience : ĠString ) Ċ Ċ class ĠIss u ance Response ( override Ġval Ġrequest : ĠIss u ance Request ) Ġ: ĊĠĠĠ ĠResponse ( request , Ġrequest . contract . input . credential Issuer ) Ġ{ ĊĠĠĠ Ġval Ġrequested Vc Map : ĠRequest ed Vc Map Ġ= Ġmutable Map Of () ĊĠĠĠ Ġval Ġrequested Id Token Map : ĠRequest ed Id Token Map Ġ= Ġmutable Map Of () ĊĠĠĠ Ġval Ġrequested Self At tested Claim Map : ĠRequest ed Self At tested Claim Map Ġ= Ġmutable Map Of () Ċ } Ċ Ċ class ĠPresentation Response ( override Ġval Ġrequest : ĠPresentation Request ) Ġ: ĊĠĠĠ ĠResponse ( request , Ġrequest . content . clientId Ġ?: Ġthrow ĠValidator Exception (" No Ġaudience Ġin Ġpresentation Ġrequest ")) Ġ{ ĊĠĠĠ Ġval Ġrequested Vc Presentation Submission Map : ĠRequest ed Vc Presentation Submission Map Ġ= Ġmutable Map Of () Ċ } Ċ Ċ type alias ĠRequest ed Id Token Map Ġ= ĠMutable Map < String , ĠString > Ċ type alias ĠRequest ed Self At tested Claim Map Ġ= ĠMutable Map < String , ĠString > Ċ type alias ĠRequest ed Vc Map Ġ= ĠMutable Map < Presentation At testation , ĠVer ifiable Credential > Ċ type alias ĠRequest ed Vc Presentation Submission Map Ġ= ĠMutable Map < Credential Presentation Input Descriptor , ĠVer ifiable Credential >