forked from EWC-consortium/eudi-wallet-oid4vc-android
-
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.
- Loading branch information
Showing
8 changed files
with
758 additions
and
59 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
20 changes: 20 additions & 0 deletions
20
...droid/src/main/java/com/ewc/eudi_wallet_oidc_android/models/PresentationSubmissionMdoc.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,20 @@ | ||
package com.ewc.eudi_wallet_oidc_android.models | ||
|
||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class PresentationSubmissionMdoc( | ||
|
||
@SerializedName("id") var id: String? = null, | ||
@SerializedName("definition_id") var definitionId: String? = null, | ||
@SerializedName("descriptor_map") var descriptorMap: ArrayList<DescriptorMapMdoc> = arrayListOf() | ||
|
||
) | ||
|
||
data class DescriptorMapMdoc( | ||
|
||
@SerializedName("id") var id: String? = null, | ||
@SerializedName("path") var path: String? = null, | ||
@SerializedName("format") var format: String? = null, | ||
|
||
) |
31 changes: 31 additions & 0 deletions
31
eudi-wallet-oidc-android/src/main/java/com/ewc/eudi_wallet_oidc_android/models/VpToken.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,31 @@ | ||
package com.ewc.eudi_wallet_oidc_android.models | ||
|
||
import co.nstant.`in`.cbor.model.Array as CborArray | ||
import co.nstant.`in`.cbor.model.ByteString | ||
import co.nstant.`in`.cbor.model.Map as CborMap | ||
|
||
data class VpToken( | ||
val version: String, | ||
val documents: List<Document>, | ||
val status: Int | ||
) | ||
|
||
data class Document( | ||
val docType: String, | ||
val issuerSigned: IssuerSigned, | ||
val deviceSigned: DeviceSigned? | ||
) | ||
|
||
data class IssuerSigned( | ||
val nameSpaces: CborMap, | ||
val issuerAuth: CborArray | ||
) | ||
|
||
data class DeviceSigned( | ||
val nameSpaces: ByteString, | ||
val deviceAuth: DeviceAuth | ||
) | ||
|
||
data class DeviceAuth( | ||
val deviceSignature: List<Any> | ||
) |
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
Oops, something went wrong.