// 詳しくは、RsaPublicKeyConverterクラスのコメントを参照。

        #region ParamToJwk
        /// <summary>RsaParamToJwk</summary>
        /// <param name="rsaParameters">RSAParameters</param>
        /// <returns>Jwk公開鍵</returns>
        public static string RsaParamToJwk(RSAParameters rsaParameters)
        {
            return(PrivateKeyConverter.RsaParamToJwk(rsaParameters, null));
        }
        // 詳しくは、EccPublicKeyConverterクラスのコメントを参照。

#if NET45 || NET46
#else
        #region ParamToJwk
        /// <summary>EcParamToJwk</summary>
        /// <param name="ecParams">ECParameters</param>
        /// <returns>Jwk公開鍵</returns>
        public static string EcParamToJwk(ECParameters ecParams)
        {
            return(PrivateKeyConverter.EcParamToJwk(ecParams, null));
        }
 /// <summary>JwkToEccParam</summary>
 /// <param name="jwkString">string</param>
 /// <returns>ECParameters(公開鍵)</returns>
 public static ECParameters JwkToEccParam(string jwkString)
 {
     return(PrivateKeyConverter.JwkToEccParam(
                JsonConvert.DeserializeObject <Dictionary <string, string> >(jwkString)));
 }
 /// <summary>JwkToRsaParam</summary>
 /// <param name="jwkString">string</param>
 /// <returns>RSAParameters(公開鍵)</returns>
 public static RSAParameters JwkToRsaParam(string jwkString)
 {
     return(PrivateKeyConverter.JwkToRsaParam(
                JsonConvert.DeserializeObject <JObject>(jwkString)));
 }