Ejemplo n.º 1
0
        private static KeyNameIdentifierClause ReadKeyNameClause(XmlReader reader)
        {
            reader.ReadStartElement("KeyName", SignedXml.XmlDsigNamespaceUrl);
            var keyIdentifier = new KeyNameIdentifierClause(reader.ReadContentAsString());
            reader.ReadEndElement();

            return keyIdentifier;
        }
Ejemplo n.º 2
0
        public override bool Matches(SecurityKeyIdentifierClause keyIdentifierClause)
        {
            KeyNameIdentifierClause that = keyIdentifierClause as KeyNameIdentifierClause;

            // PreSharp Bug: Parameter 'that' to this public method must be validated: A null-dereference can occur here.
            #pragma warning suppress 56506
            return(ReferenceEquals(this, that) || (that != null && that.Matches(this.keyName)));
        }
Ejemplo n.º 3
0
        public override bool Matches(SecurityKeyIdentifierClause keyIdentifierClause)
        {
            KeyNameIdentifierClause that = keyIdentifierClause as KeyNameIdentifierClause;

            // PreSharp
            #pragma warning suppress 56506
            return(ReferenceEquals(this, that) || (that != null && that.Matches(this.keyName)));
        }
Ejemplo n.º 4
0
        public override bool Matches(SecurityKeyIdentifierClause clause)
        {
            if (clause == null)
            {
                throw new ArgumentNullException("clause");
            }
            KeyNameIdentifierClause knic =
                clause as KeyNameIdentifierClause;

            return(knic != null && Matches(knic.KeyName));
        }
        public override bool Matches(SecurityKeyIdentifierClause keyIdentifierClause)
        {
            KeyNameIdentifierClause objB = keyIdentifierClause as KeyNameIdentifierClause;

            return(object.ReferenceEquals(this, objB) || ((objB != null) && objB.Matches(this.keyName)));
        }
Ejemplo n.º 6
0
            public override void WriteKeyIdentifierClauseCore(XmlDictionaryWriter writer, SecurityKeyIdentifierClause keyIdentifierClause)
            {
                KeyNameIdentifierClause clause = keyIdentifierClause as KeyNameIdentifierClause;

                writer.WriteElementString(XD.XmlSignatureDictionary.Prefix.Value, XD.XmlSignatureDictionary.KeyName, this.NamespaceUri, clause.KeyName);
            }