Class JSONWebKeyBuilder

java.lang.Object
io.fusionauth.jwks.JSONWebKeyBuilder

public class JSONWebKeyBuilder extends Object
Author:
Daniel DeGroff
  • Constructor Details

    • JSONWebKeyBuilder

      public JSONWebKeyBuilder()
  • Method Details

    • build

      public JSONWebKey build(String encodedPEM)
      Build a JSON Web Key from the provided encoded PEM.
      Parameters:
      encodedPEM - the encoded PEM in string format
      Returns:
      a JSON Web Key
    • build

      public JSONWebKey build(PrivateKey privateKey)
      Build a JSON Web Key from the provided PrivateKey.
      Parameters:
      privateKey - the private key
      Returns:
      a JSON Web Key
    • build

      public JSONWebKey build(PublicKey publicKey)
      Build a JSON Web Key from the provided PublicKey.
      Parameters:
      publicKey - the public key
      Returns:
      a JSON Web Key
    • build

      public JSONWebKey build(Certificate certificate)
      Build a JSON Web Key from the provided X.509 Certificate.
      Parameters:
      certificate - the certificate
      Returns:
      a JSON Web Key