Skip to content

blindnet-io/jwt-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blindnet devkit
JWT library for Java

Library for creating, parsing, signing and verifying blindnet JWTs in Java applications

blindnet.dev

Documentation  •  Submit an Issue  •  Online Chat

Get Started

🚀 Check out our Quick Start Guide to get started in a snap.

Installation

Add the library to your project's dependencies:

Maven

<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>

Gradle

maven {
    url = uri("https://nexus.blindnet.io/repository/maven-snapshots")
}

implementation("io.blindnet:jwt-java:1.0.0-SNAPSHOT")

Usage

// 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.

Contributing

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.

Community

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.

License

The blindnet devkit jwt-java library is available under MIT (and here is why).

About

Blindnet JWT for Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages