GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — jca-jwt/README.md at main · prokop-dev/jca-jwt

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
49 lines (35 loc) · 1.63 KB
/

README.md

Copy path

File metadata and controls

49 lines (35 loc) · 1.63 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Java Compact JWT (JSON Web Token) library

Clean room implementation of JWT ecosystem for Java and Android:

  • RFC 7515 - JSON Web Signature (JWS)
  • RFC 7516 - JSON Web Encryption (JWE)
  • RFC 7517 - JSON Web Key (JWK)
  • RFC 7518 - JSON Web Algorithms (JWA)
  • RFC 7519 - JSON Web Token (JWT)
  • RFC 7520 - Examples of Protecting Content Using JSON Object Signing and Encryption (JOSE)

I wrote that library to faciliatte work with JWT (JTS and JWE) structures. Primary reason was that I was not fully none of the libraries I was able to find and wanted the following features:

  • Maximum compatibility with Java JCA and standard Java classpath API. For example JWK constructed with this library must be JCA class and must be usable with Java crypto.
  • Minimalism, ...

Usage

Use the following Maven Central coordinates:

<dependency>
    <groupId>dev.prokop</groupId>
    <artifactId>jca-jwt</artifactId>
    <version>0.0.1</version>
</dependency>

This library is written with "zero transitive dependencies" in mind. It will not create classpath problems.

Sample use

JWK

To use JWT (signed JWS or encrypted JWE) one must have cryptographic keys. Here is where dev.prokop.jwt.Jwk interface comes handy.

Technical notes for myself

Release:

mvn clean deploy
git tag -s v0.0.1 -m 'Maven Central 0.0.1'
git push --tags
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.