mirror of
https://github.com/swiyu-admin-ch/swiyu-generic-java-lib.git
synced 2026-08-26 12:54:27 +00:00
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 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .github | ||
| swiyu-claims-path-pointer-util | ||
| swiyu-did-resolver-adapter | ||
| swiyu-dpop-util | ||
| swiyu-generic-java-all | ||
| swiyu-jwe-util | ||
| swiyu-jws-signature-service | ||
| swiyu-jwt-util | ||
| swiyu-jwt-validator | ||
| swiyu-sdjwt-validator | ||
| swiyu-token-status-list | ||
| swiyu-ts-builder | ||
| swiyu-ts-verifier | ||
| .gitignore | ||
| CHANGELOG.md | ||
| pom.xml | ||
| README.md | ||
| SECURITY.md | ||
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-allaggregator - 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
- Create a new directory for the module
- Add the module to the parent POM's
<modules>section - Create a
pom.xmlwith the parent reference - Implement your utility classes
- 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.