Read-only mirror of https://github.com/swiyu-admin-ch/swiyu-generic-java-lib — Bundesamt für Justiz. Issues & pull requests at the source.
  • Java 99.9%
  • Dockerfile 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Bruno Zimmermann afb6fb9a5a
Merge pull request #94 from swiyu-admin-ch/deps
chore(deps): Bump didresolver version for jwt validator
2026-12-04 11:35:27 +01:00
.github chore: Set trigger for release to be published instead of created 2026-10-05 10:05:59 +02:00
.opencode/skills chore: remove outdated post-release and release preparation documentation 2026-11-20 13:31:48 +01:00
.oss-scanner chore: Update Jackson dependency to version 3.2.4 and enhance threat model documentation 2026-10-30 08:40:37 +01:00
swiyu-claims-path-pointer-util Merge remote-tracking branch 'origin/main' into chore/EIDOMNI-1508 2026-11-13 13:46:37 +01:00
swiyu-did-resolver-adapter fix(EIDOMNI-1593): Use latest DidResolver functionality instead of custom logic 2026-12-03 16:36:36 +01:00
swiyu-dpop-util chore: update version to 3.5.0-SNAPSHOT and prepare CHANGELOG for next development cycle 2026-11-20 11:45:40 +01:00
swiyu-generic-java-all chore: update version to 3.5.0-SNAPSHOT and prepare CHANGELOG for next development cycle 2026-11-20 11:45:40 +01:00
swiyu-jwe-util deps: Update Spring boot dependency 2026-11-23 14:08:44 +01:00
swiyu-jws-signature-service deps: Update Spring boot dependency 2026-11-23 14:08:44 +01:00
swiyu-jwt-util chore: update version to 3.5.0-SNAPSHOT and prepare CHANGELOG for next development cycle 2026-11-20 11:45:40 +01:00
swiyu-jwt-validator chore(deps): Bump didresolver version for jwt validator 2026-12-04 11:26:19 +01:00
swiyu-sdjwt-builder fix(EIDOMNI-1396): Allow null values in arrays to be used 2026-11-20 15:33:10 +01:00
swiyu-sdjwt-util chore: update version to 3.5.0-SNAPSHOT and prepare CHANGELOG for next development cycle 2026-11-20 11:45:40 +01:00
swiyu-sdjwt-verifier fix(EIDOMNI-1396): Allow null values in arrays to be used 2026-11-20 15:33:10 +01:00
swiyu-token-status-list deps: Update Spring boot dependency 2026-11-23 14:08:44 +01:00
swiyu-ts-builder chore: update version to 3.5.0-SNAPSHOT and prepare CHANGELOG for next development cycle 2026-11-20 11:45:40 +01:00
swiyu-ts-verifier deps: Update Spring boot dependency 2026-11-23 14:08:44 +01:00
.gitignore remove .idea 2025-11-04 12:43:22 +01:00
CHANGELOG.md fix(EIDOMNI-1593): Use latest DidResolver functionality instead of custom logic 2026-12-03 16:36:36 +01:00
LICENSE Add MIT License to the project 2026-09-09 12:23:53 +02:00
pom.xml chore: update version to 3.5.0-SNAPSHOT and prepare CHANGELOG for next development cycle 2026-11-20 11:45:40 +01:00
README.md docs(EIDOMNI-1497): Update README to reflect Java 25+ requirement 2026-11-09 16:07:18 +01:00
SECURITY.md chore: Update version to 3.3.0 and modify changelog for release 2026-11-09 12:53:51 +01:00
THIRD-PARTY-NOTICES.md Create THIRD-PARTY-NOTICES.md with license details 2026-09-09 11:49:24 +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 25 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.