Class JWKHelper

java.lang.Object
org.pac4j.jwt.util.JWKHelper

public final class JWKHelper extends Object
JWK helper.
Since:
1.9.2
Author:
Jerome Leleu
  • Constructor Details

    • JWKHelper

      public JWKHelper()
  • Method Details

    • buildSecretFromJwk

      public static String buildSecretFromJwk(String json)
      Build the secret from the JWK JSON.
      Parameters:
      json - the json
      Returns:
      the secret
    • buildRSAKeyPairFromJwk

      public static KeyPair buildRSAKeyPairFromJwk(String json)
      Build the RSA key pair from the JWK JSON.
      Parameters:
      json - the json
      Returns:
      the key pair
    • buildECKeyPairFromJwk

      public static KeyPair buildECKeyPairFromJwk(String json)
      Build the EC key pair from the JWK JSON.
      Parameters:
      json - the json
      Returns:
      the key pair