-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARC-1233: Basic working version with GesundheitsID
- Loading branch information
1 parent
6bf89e9
commit 3dd6e77
Showing
38 changed files
with
1,436 additions
and
716 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
6 changes: 0 additions & 6 deletions
6
gesundheitsid/src/main/java/com/oviva/gesundheitsid/crypto/ECKeyPair.java
This file was deleted.
Oops, something went wrong.
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
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
23 changes: 23 additions & 0 deletions
23
gesundheitsid/src/main/java/com/oviva/gesundheitsid/util/JwksUtils.java
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,23 @@ | ||
package com.oviva.gesundheitsid.util; | ||
|
||
import com.nimbusds.jose.jwk.JWKSet; | ||
import java.io.IOException; | ||
import java.nio.file.Files; | ||
import java.nio.file.Path; | ||
import java.text.ParseException; | ||
|
||
public class JwksUtils { | ||
|
||
private JwksUtils() {} | ||
|
||
public static JWKSet load(Path path) { | ||
|
||
try (var fin = Files.newInputStream(path)) { | ||
return JWKSet.load(fin); | ||
} catch (IOException | ParseException e) { | ||
var fullPath = path.toAbsolutePath(); | ||
throw new RuntimeException( | ||
"failed to load JWKS from '%s' ('%s')".formatted(path, fullPath), e); | ||
} | ||
} | ||
} |
9 changes: 4 additions & 5 deletions
9
...om/oviva/gesundheitsid/test/JwsUtils.java → ...om/oviva/gesundheitsid/util/JwsUtils.java
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
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.