Package io.fusionauth.jwks
Class JSONWebKeyBuilder
java.lang.Object
io.fusionauth.jwks.JSONWebKeyBuilder
- Author:
- Daniel DeGroff
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuild a JSON Web Key from the provided encoded PEM.build(Certificate certificate) Build a JSON Web Key from the provided X.509 Certificate.build(PrivateKey privateKey) Build a JSON Web Key from the provided PrivateKey.Build a JSON Web Key from the provided PublicKey.
-
Constructor Details
-
JSONWebKeyBuilder
public JSONWebKeyBuilder()
-
-
Method Details
-
build
Build a JSON Web Key from the provided encoded PEM.- Parameters:
encodedPEM- the encoded PEM in string format- Returns:
- a JSON Web Key
-
build
Build a JSON Web Key from the provided PrivateKey.- Parameters:
privateKey- the private key- Returns:
- a JSON Web Key
-
build
Build a JSON Web Key from the provided PublicKey.- Parameters:
publicKey- the public key- Returns:
- a JSON Web Key
-
build
Build a JSON Web Key from the provided X.509 Certificate.- Parameters:
certificate- the certificate- Returns:
- a JSON Web Key
-