Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
f8faa89
Fix: Removed duplicate JsonLdValidator classes
bjoern-arnold Nov 3, 2023
7da5cd3
fix: Throwing exception to handel invalide type
koptan Jan 19, 2024
034bc6d
fix: Throw exception and log in validation step
koptan Jan 19, 2024
aad08d0
Issue 35: Fixed convenience DID constructor
bjoern-arnold Nov 3, 2023
e139365
Set JTI attribute in JWT to same value as ID attribute of VP
bjoern-arnold Dec 7, 2023
4b200d5
Fixed Spotless format violation
bjoern-arnold Dec 20, 2023
49e9ebd
fix: add if statement
mustafasalfiti Dec 18, 2023
e7db2ee
fix: sort
mustafasalfiti Dec 18, 2023
7c7f167
Fix: Excluded transitive dep to titanium-jsons-ld-jre8 from rdf-urdna
bjoern-arnold Jan 23, 2024
760339d
feat: new Exception system
koptan Nov 7, 2023
c399bb5
chore: Adding SerialVersion to all Exceptions
koptan Jan 11, 2024
883fede
chore: Fixing code review
koptan Jan 15, 2024
22da02d
Fix: Removed duplicate JsonLdValidator classes
bjoern-arnold Nov 3, 2023
c822460
fix: Throw exception and log in validation step
koptan Jan 19, 2024
a447c47
feat: new Exception system
koptan Nov 7, 2023
8547109
Fix: Resolving comment review
koptan Feb 1, 2024
dd86401
Revert "Fix: Resolving comment review"
koptan Feb 6, 2024
dc9e1c7
chore: Updating year in copyright to 2024 for modified files
koptan Feb 6, 2024
28f38b3
fix: correcting from 21559 to 25519
koptan Feb 6, 2024
74d9d0c
Fix: Updating copyright to 2024
koptan Feb 6, 2024
c611600
fix: Fixing code review comments
koptan Feb 19, 2024
c5282f9
Fix: Adding correct JWS header values
koptan Feb 19, 2024
7a1c0e8
chor: Spotless fomrat
koptan Feb 19, 2024
61d31d6
Merge branch 'main' into issue-43-produces-wrong-signatures
koptan Mar 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ SPDX-License-Identifier: Apache-2.0
<groupId>com.apicatalog</groupId>
<artifactId>titanium-json-ld-jre8</artifactId>
</exclusion>
</exclusions>
</exclusions>
</dependency>

<!-- https://mvnrepository.com/artifact/jakarta.json/jakarta.json-api -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import java.net.URI;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -116,10 +117,16 @@ private static SignedJWT createSignedES256Jwt(

var algorithm = JWSAlgorithm.EdDSA;
var type = JOSEObjectType.JWT;

// https://w3c.github.io/vc-jws-2020/#json-web-signature-2020
Comment thread
koptan marked this conversation as resolved.
var crit = new HashSet<String>();
crit.add("b64");

var header =
new JWSHeader(
Comment thread
koptan marked this conversation as resolved.
algorithm, type, null, null, null, null, null, null, null, null, issuer, true, null,
algorithm, type, null, crit, null, null, null, null, null, null, issuer, false, null,
null);

var vc = new SignedJWT(header, claimsSet);

vc.sign(signer);
Expand Down