Class JWKHelper


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

      Constructors 
      Constructor Description
      JWKHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.security.KeyPair buildECKeyPairFromJwk​(java.lang.String json)
      Build the EC key pair from the JWK JSON.
      static java.security.KeyPair buildRSAKeyPairFromJwk​(java.lang.String json)
      Build the RSA key pair from the JWK JSON.
      static java.lang.String buildSecretFromJwk​(java.lang.String json)
      Build the secret from the JWK JSON.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JWKHelper

        public JWKHelper()
    • Method Detail

      • buildSecretFromJwk

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

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

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