Library for creating, parsing, signing and verifying blindnet JWTs in Java applications
Documentation
•
Submit an Issue
•
Online Chat
🚀 Check out our Quick Start Guide to get started in a snap.
Add the library to your project's dependencies:
<repository>
<id>blindnet-snapshots</id>
<url>https://nexus.blindnet.io/repository/maven-snapshots</url>
</repository>
<dependency>
<groupId>io.blindnet</groupId>
<artifactId>jwt-java</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
maven {
url = uri("https://nexus.blindnet.io/repository/maven-snapshots")
}
implementation("io.blindnet:jwt-java:1.0.0-SNAPSHOT")
// Replace APP_ID and APP_KEY with your app values
TokenBuilder builder = new TokenBuilder(APP_ID, TokenPrivateKey.fromString(APP_KEY));
// Application tokens are used to authenticate your application against devkit components
String appToken = builder.app();
// User tokens authenticate registered users
String userToken = builder.user("user_id");
// Anonymous tokens can be used to allow an unknown user to perform some actions,
// like creating some privacy requests
String anonToken = builder.anonymous();
For a more complete example, the storage-connector-java repo contains a demo application implementing authentication of users and handling of privacy requests.
Contributions of all kinds are always welcome!
If you see a bug or room for improvement in this project in particular, please open an issue or directly fork this repository to submit a Pull Request.
If you have any broader questions or suggestions, just open a simple informal DevRel Request, and we'll make sure to quickly find the best solution for you.
All community participation is subject to blindnet’s Code of Conduct.
Stay up to date with new releases and projects, learn more about how to protect your privacy and that of our users, and share projects and feedback with our team.
- Join our Slack Workspace to chat with the blindnet community and team
- Follow us on Twitter to stay up to date with the latest news
- Check out our Openness Framework and Product Management on Github to see how we operate and give us feedback.
The blindnet devkit jwt-java library is available under MIT (and here is why).