-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #44: Signature validation support of DID starting with did:ebsi
- Loading branch information
Showing
3 changed files
with
151 additions
and
8 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
...-wallet-oidc-android/src/main/java/com/ewc/eudi_wallet_oidc_android/models/DIDDocument.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,54 @@ | ||
package com.ewc.eudi_wallet_oidc_android.models | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class DIDDocument( | ||
@SerializedName("@context") | ||
val context: List<String>, | ||
|
||
@SerializedName("id") | ||
val id: String, | ||
|
||
@SerializedName("controller") | ||
val controller: List<String>, | ||
|
||
@SerializedName("verificationMethod") | ||
val verificationMethods: List<VerificationMethod>, | ||
|
||
@SerializedName("authentication") | ||
val authentication: List<String>, | ||
|
||
@SerializedName("assertionMethod") | ||
val assertionMethods: List<String>, | ||
|
||
@SerializedName("capabilityInvocation") | ||
val capabilityInvocations: List<String> | ||
) | ||
|
||
data class VerificationMethod( | ||
@SerializedName("id") | ||
val id: String, | ||
|
||
@SerializedName("type") | ||
val type: String, | ||
|
||
@SerializedName("controller") | ||
val controller: String, | ||
|
||
@SerializedName("publicKeyJwk") | ||
val publicKeyJwk: PublicKeyJwk | ||
) | ||
|
||
data class PublicKeyJwk( | ||
@SerializedName("kty") | ||
val kty: String, | ||
|
||
@SerializedName("crv") | ||
val crv: String, | ||
|
||
@SerializedName("x") | ||
val x: String, | ||
|
||
@SerializedName("y") | ||
val y: String | ||
) |
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