Read-only mirror of https://github.com/swiyu-admin-ch/swiyu-generic-java-lib — Bundesamt für Justiz. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Bruno Zimmermann bdc027eca2
Merge pull request #59 from swiyu-admin-ch/fix/validate_did_location_in_every_case
fix(EIDOMNI-1225): Validate URL in every case, remove unused functions
2026-08-11 15:03:20 +02:00
.github feat: update project versions to 1.6.0-SNAPSHOT across multiple modules 2026-05-06 12:45:11 +02:00
swiyu-claims-path-pointer-util release(2.0.0): bump version and update CHANGELOG.md 2026-07-30 14:20:10 +02:00
swiyu-did-resolver-adapter release(2.0.0): bump version and update CHANGELOG.md 2026-07-30 14:20:10 +02:00
swiyu-dpop-util release(2.0.0): bump version and update CHANGELOG.md 2026-07-30 14:20:10 +02:00
swiyu-generic-java-all release(2.0.0): bump version and update CHANGELOG.md 2026-07-30 14:20:10 +02:00
swiyu-jwe-util feat(EIDOMNI-1117): update JWE Decompression Bomb protection limits and improve validation 2026-08-04 14:46:05 +02:00
swiyu-jws-signature-service feat(EIDOMNI-1117): update JWE Decompression Bomb protection limits and improve validation 2026-08-04 14:57:25 +02:00
swiyu-jwt-util release(2.0.0): bump version and update CHANGELOG.md 2026-07-30 14:20:10 +02:00
swiyu-jwt-validator fix typo 2026-08-11 14:55:45 +02:00
swiyu-sdjwt-validator feat(EIDOMNI-1117): update JWE Decompression Bomb protection limits and improve validation 2026-08-04 12:59:03 +02:00
swiyu-token-status-list release(2.0.0): bump version and update CHANGELOG.md 2026-07-30 14:20:10 +02:00
swiyu-ts-builder release(2.0.0): bump version and update CHANGELOG.md 2026-07-30 14:20:10 +02:00
swiyu-ts-verifier release(2.0.0): bump version and update CHANGELOG.md 2026-07-30 14:20:10 +02:00
.gitignore remove .idea 2025-11-04 12:43:22 +01:00
CHANGELOG.md feat(EIDOMNI-1117): update JWE Decompression Bomb protection limits and improve validation 2026-08-04 13:22:09 +02:00
pom.xml release(2.0.0): bump version and update CHANGELOG.md 2026-07-30 14:20:10 +02:00
README.md Remove client attestation validator lib 2026-05-05 13:48:44 +02:00
SECURITY.md doc(EIDOMNI-1155): update scope and add security.md 2026-07-27 15:55:39 +02:00

Swiyu Generic Java Library

A collection of reusable Java helper libraries organized as a multi-module Maven project.

Project Structure

This project follows a multi-module Maven architecture, where each utility library is a separate module with its own POM. This approach allows you to:

  • Use individual modules: Include only the utilities you need
  • Use the complete library: Include all modules via the swiyu-all aggregator
  • Easy maintenance: All modules in one repository with centralized dependency management
  • Flexible builds: Build everything at once or individual modules

Modules

swiyu-jwt-validator

Utilities for validating DID-based JWTs in the swiyu ecosystem.

<dependency>
    <groupId>ch.admin.swiyu</groupId>
    <artifactId>swiyu-jwt-validator</artifactId>
    <version>0.0.1</version>
</dependency>

swiyu-generic-java-all (Aggregator)

Include all utility modules at once

<dependency>
    <groupId>ch.admin.swiyu</groupId>
    <artifactId>swiyu-generic-java-all</artifactId>
    <version>0.0.1</version>
</dependency>

Building the Project

Build all modules

mvn clean install

Build a specific module

cd swiyu-jwt-validator
mvn clean install

Run tests

mvn test

Run tests for a specific module

mvn test -pl swiyu-jwt-validator

Requirements

  • Java 21 or higher
  • Maven 3.6 or higher

Usage Examples

Validation Utils

[TODO]

Adding New Modules

  1. Create a new directory for the module
  2. Add the module to the parent POM's <modules> section
  3. Create a pom.xml with the parent reference
  4. Implement your utility classes
  5. Add tests

Contributions and feedback

We welcome any feedback on the code regarding both the implementation and security aspects. Please follow the guidelines for contributing found in CONTRIBUTING.md.

License

This project is licensed under the terms of the MIT license. See the LICENSE file for details.