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); }
public static JwkSet FromJson(string json, IJsonMapper mapper = null) { return(JwkSet.FromDictionary( mapper.Parse <IDictionary <string, object> >(json) )); }