Skip to content

Commit

Permalink
Merge pull request #53 from danubetech/feat/vcdm-v2
Browse files Browse the repository at this point in the history
Support for VC DM 2
  • Loading branch information
peacekeeper authored Dec 30, 2024
2 parents 6bda421 + 4effba2 commit b91065b
Show file tree
Hide file tree
Showing 19 changed files with 1,468 additions and 54 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
/.settings/
/target/
/bin/
.idea
21 changes: 13 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,25 +158,25 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.11.0</version>
<version>5.11.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.11.0</version>
<version>5.11.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.13.0</version>
<version>5.14.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>5.13.0</version>
<version>5.14.2</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -194,23 +194,28 @@
<dependency>
<groupId>com.google.crypto.tink</groupId>
<artifactId>tink</artifactId>
<version>1.15.0</version>
<version>1.16.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>decentralized-identity</groupId>
<artifactId>jsonld-common-java</artifactId>
<version>1.12.0</version>
</dependency>
<dependency>
<groupId>info.weboftrust</groupId>
<artifactId>ld-signatures-java</artifactId>
<version>1.10.0</version>
<version>1.11.0</version>
</dependency>
<dependency>
<groupId>com.nimbusds</groupId>
<artifactId>nimbus-jose-jwt</artifactId>
<version>9.41.1</version>
<version>9.48</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.17.2</version>
<version>2.18.2</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import java.io.Reader;
import java.net.URI;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public class CredentialSubject extends JsonLDObject {
Expand Down Expand Up @@ -90,6 +91,10 @@ public static CredentialSubject getFromJsonLDObject(JsonLDObject jsonLdObject) {
return JsonLDObject.getFromJsonLDObject(CredentialSubject.class, jsonLdObject);
}

public static List<CredentialSubject> getFromJsonLDObjectAsList(JsonLDObject jsonLdObject) {
return JsonLDObject.getFromJsonLDObjectAsList(CredentialSubject.class, jsonLdObject);
}

public static void removeFromJsonLdObject(JsonLDObject jsonLdObject) {
JsonLDObject.removeFromJsonLdObject(CredentialSubject.class, jsonLdObject);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import java.io.Reader;
import java.net.URI;
import java.util.Date;
import java.util.List;
import java.util.Map;

public class VerifiableCredential extends JsonLDObject {
Expand Down Expand Up @@ -128,6 +129,10 @@ public static VerifiableCredential getFromJsonLDObject(JsonLDObject jsonLdObject
return JsonLDObject.getFromJsonLDObject(VerifiableCredential.class, jsonLdObject);
}

public static List<VerifiableCredential> getFromJsonLDObjectAsList(JsonLDObject jsonLdObject) {
return JsonLDObject.getFromJsonLDObjectAsList(VerifiableCredential.class, jsonLdObject);
}

public static void removeFromJsonLdObject(JsonLDObject jsonLdObject) {
JsonLDObject.removeFromJsonLdObject(VerifiableCredential.class, jsonLdObject);
}
Expand Down Expand Up @@ -156,6 +161,10 @@ public LdProof getLdProof() {
return LdProof.getFromJsonLDObject(this);
}

public List<LdProof> getLdProofAsList() {
return LdProof.getFromJsonLDObjectAsList(this);
}

public CredentialStatus getCredentialStatus() {
return CredentialStatus.getFromJsonLDObject(this);
}
Expand Down
Loading

0 comments on commit b91065b

Please sign in to comment.