json-web-key-generator

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

Categories

Categories

KeY Data Data Formats Formal Verification JSON
GroupId

GroupId

org.mitre
ArtifactId

ArtifactId

json-web-key-generator
Last Version

Last Version

0.8.2
Release Date

Release Date

Type

Type

jar
Description

Description

json-web-key-generator
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Project URL

Project URL

http://maven.apache.org
Source Code Management

Source Code Management

https://github.com/mitreid-connect/json-web-key-generator.git

Download json-web-key-generator

How to add to project

<!-- https://jarcasting.com/artifacts/org.mitre/json-web-key-generator/ -->
<dependency>
    <groupId>org.mitre</groupId>
    <artifactId>json-web-key-generator</artifactId>
    <version>0.8.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.mitre/json-web-key-generator/
implementation 'org.mitre:json-web-key-generator:0.8.2'
// https://jarcasting.com/artifacts/org.mitre/json-web-key-generator/
implementation ("org.mitre:json-web-key-generator:0.8.2")
'org.mitre:json-web-key-generator:jar:0.8.2'
<dependency org="org.mitre" name="json-web-key-generator" rev="0.8.2">
  <artifact name="json-web-key-generator" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.mitre', module='json-web-key-generator', version='0.8.2')
)
libraryDependencies += "org.mitre" % "json-web-key-generator" % "0.8.2"
[org.mitre/json-web-key-generator "0.8.2"]

Dependencies

compile (6)

Group / Artifact Type Version
com.nimbusds : nimbus-jose-jwt jar 8.19
commons-cli : commons-cli jar 1.4
com.google.guava : guava jar 18.0
com.google.code.gson : gson jar 2.8.6
org.bouncycastle : bcprov-jdk15on jar 1.66
org.bouncycastle : bcpkix-jdk15on jar 1.66

test (1)

Group / Artifact Type Version
junit : junit jar 3.8.1

Project Modules

There are no modules declared in this project.

json-web-key-generator

A commandline Java-based generator for JSON Web Keys (JWK) and JSON Private/Shared Keys (JPSKs).

=====================

To compile, run mvn package. This will generate a json-web-key-generator-0.9-SNAPSHOT-jar-with-dependencies.jar in the /target directory.

To generate a key, run java -jar target/json-web-key-generator-0.9-SNAPSHOT-jar-with-dependencies.jar -t <keytype>. Several other arguments are defined which may be required depending on your key type:

usage: java -jar json-web-key-generator.jar -t <keyType> [options]
 -t,--type <arg>           Key Type, one of: RSA, oct, EC, OKP
 -s,--size <arg>           Key Size in bits, required for RSA and oct key
                           types. Must be an integer divisible by 8
 -c,--curve <arg>          Key Curve, required for EC or OKP key type.
                           Must be one of P-256, secp256k1, P-384, P-521
                           for EC keys or one of Ed25519, Ed448, X25519,
                           X448 for OKP keys.
 -u,--usage <arg>          Usage, one of: enc, sig (optional)
 -a,--algorithm <arg>      Algorithm (optional)
 -i,--id <arg>             Key ID (optional), one will be generated if not
                           defined
 -g,--idGenerator <arg>    Key ID generation method (optional). Can be one
                           of: date, timestamp, sha256, sha1, none. If
                           omitted, generator method defaults to
                           'timestamp'.
 -I,--noGenerateId         <deprecated> Don't generate a Key ID.
                           (Deprecated, use '-g none' instead.)
 -p,--showPubKey           Display public key separately (if applicable)
 -S,--keySet               Wrap the generated key in a KeySet
 -o,--output <arg>         Write output to file. Will append to existing
                           KeySet if -S is used. Key material will not be
                           displayed to console.
 -P,--pubKeyOutput <arg>   Write public key to separate file. Will append
                           to existing KeySet if -S is used. Key material
                           will not be displayed to console. '-o/--output'
                           must be declared as well.
 -x,--x509                 Display keys in X509 PEM format
org.mitre

MITREid Connect

Open source reference implementation of OpenID Connect and OAuth 2.0 from the MITRE Corporation and MIT Internet Trust Consortium (ITC).

Versions

Version
0.8.2
0.8.1
0.8
0.7
0.6.1
0.6
0.5
0.4
0.2
0.1