File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/main/java/com/danubetech/verifiablecredentials Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 11package com .danubetech .verifiablecredentials ;
22
33
4+ import com .apicatalog .jsonld .lang .Keywords ;
45import com .apicatalog .jsonld .loader .DocumentLoader ;
56import com .danubetech .verifiablecredentials .jsonld .VerifiableCredentialContexts ;
67import com .danubetech .verifiablecredentials .jsonld .VerifiableCredentialKeywords ;
1314import java .net .URI ;
1415import java .util .LinkedHashMap ;
1516import java .util .Map ;
17+ import java .util .stream .Collectors ;
1618
1719public class CredentialSubject extends JsonLDObject {
1820
@@ -97,7 +99,9 @@ public static void removeFromJsonLdObject(JsonLDObject jsonLdObject) {
9799
98100 public Map <String , Object > getClaims () {
99101 Map <String , Object > claims = new LinkedHashMap <>(this .getJsonObject ());
102+ for (String key : claims .keySet ()) if (Keywords .contains (key )) claims .remove (key );
100103 claims .remove (JsonLDKeywords .JSONLD_TERM_ID );
104+ claims .remove (JsonLDKeywords .JSONLD_TERM_TYPE );
101105 return claims ;
102106 }
103107}
You can’t perform that action at this time.
0 commit comments