-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Update match credentials response and added func to normalise SD…
…-JWT to plain JSON Signed-off-by: George J Padayatti <george.padayatti@igrant.io>
- Loading branch information
1 parent
e54d4fd
commit 1bdf64e
Showing
3 changed files
with
80 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...ithub/decentraliseddataexchange/presentationexchangesdk/models/MatchCredentialResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.github.decentraliseddataexchange.presentationexchangesdk.models | ||
|
||
data class SdJwtField( | ||
val index: Int, | ||
val jsonPathMatched: String | ||
) | ||
|
||
data class MatchedCredentials( | ||
val sdJwtField: List<SdJwtField>, | ||
val vc: Any | ||
) | ||
|
||
// { "matchedCredentials": [ { "fields": [ { "index": 0, "jsonPathMatch": "[]" } ], "vc": "Passport" } ] | ||
|
||
data class MatchCredentialResponse( | ||
val descriptorMap: List<DescriptorMap>, | ||
val matchedCredentials: List<MatchedCredentials> | ||
) | ||
|