internal override void ReadProperties(JsonElement json) { KeyMaterial = null; if (json.TryGetProperty("key", out JsonElement key)) { KeyMaterial = new JsonWebKey(); KeyMaterial.ReadProperties(key); } base.ReadProperties(json); }
internal virtual void ReadProperty(JsonProperty prop) { switch (prop.Name) { case KeyPropertyName: KeyMaterial = new JsonWebKey(); KeyMaterial.ReadProperties(prop.Value); Properties.ParseId(KeyMaterial.KeyId); break; default: Properties.ReadProperty(prop); break; } }
internal virtual void ReadProperty(JsonProperty prop) { switch (prop.Name) { case KeyPropertyName: Key = new JsonWebKey(); Key.ReadProperties(prop.Value); Uri id = new Uri(Key.Id); Properties.ParseId(id); break; default: Properties.ReadProperty(prop); break; } }