Command line tool for creating and verifying JWT tokens. Created with Java, GraalVM native image, Picocli and JReleaser.
Made with contrib.rocks.
Key Features • Getting started • How to use • Configuration • Related projects • GitPod Environment • License • Code Quality •
- Java
- Maven
- Picocli
- JReleaser
- CodeCov for code coverage
- Codeclimate and SonarCloud for quality checks
- GitHub Actions and Workflows
- GitPod environment
- JUnit tests
Once you have built and released the application, you can use the following commands to deploy the application to your Mac, Linux or Windows machine. This is powered by GraalVM native image and distribution using JReleaser and GitHub Actions and Workflow.
# Substitute your username
# Deploy to Mac
brew tap rrajesh1979/tap
brew install jwtc
To upgrade version
brew update
brew upgrade jwtc
==> Upgrading 1 outdated package:
rrajesh1979/tap/jwtc 0.0.3 -> 0.0.4
==> Downloading https://github.com/rrajesh1979/ref-java-jwt/releases/download/v0.0.4/jwtc-0.0.4-osx-x86_64.zip
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/445972514/8ad8375b-3107-490d-a826-3ad6e913632a?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4
######################################################################## 100.0%
==> Upgrading rrajesh1979/tap/jwtc
0.0.3 -> 0.0.4
🍺 /usr/local/Cellar/jwtc/0.0.4: 5 files, 32.4MB, built in 3 seconds
==> Running `brew cleanup jwtc`...
Removing: /usr/local/Cellar/jwtc/0.0.3... (5 files, 32.2MB)
Removing: /Users/rajesh/Library/Caches/Homebrew/jwtc--0.0.3.zip... (10.4MB)
For command auto completion, you can use the following command.
source jwtc_completion
jwtc[TAB][TAB]
#Auto completion displays available sub-commands
jwtc
decode encode help
Once installed you can invoke jwtc with the file name and algorithm as shown below.
Invoking the command displays the usage information as shown below. This is powered by Picocli.
< 8000 div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="jwtc help Usage: jwtc [-hV] [COMMAND] Encode and decode JWT tokens. -h, --help Show this help message and exit. -V, --version Print version information and exit. Commands: help Displays help information about the specified command encode Encode a JWT token decode Decode JWT token">jwtc help Usage: jwtc [-hV] [COMMAND] Encode and decode JWT tokens. -h, --help Show this help message and exit. -V, --version Print version information and exit. Commands: help Displays help information about the specified command encode Encode a JWT token decode Decode JWT token