コード例 #1
0
        public static JwkSet FromDictionary(IDictionary <string, object> data)
        {
            var keyList = Dictionaries.Get <IEnumerable <object> >(data, "keys");

            JwkSet result = new JwkSet();

            foreach (var key in keyList)
            {
                result.Add(Jwk.FromDictionary((IDictionary <string, object>)key));
            }

            return(result);
        }
コード例 #2
0
 public static JwkSet FromJson(string json, IJsonMapper mapper = null)
 {
     return(JwkSet.FromDictionary(
                mapper.Parse <IDictionary <string, object> >(json)
                ));
 }