Ejemplo n.º 1
0
        internal override void ReadProperties(JsonElement json)
        {
            KeyMaterial = null;

            if (json.TryGetProperty("key", out JsonElement key))
            {
                KeyMaterial = new JsonWebKey();
                KeyMaterial.ReadProperties(key);
            }

            base.ReadProperties(json);
        }
Ejemplo n.º 2
0
        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;
            }
        }
Ejemplo n.º 3
0
        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;
            }
        }