Class JWKHelper


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

      • JWKHelper

        public JWKHelper()
    • Method Detail

      • 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