public XmlNode ToXml(XmlDocument doc) { var dataNode = doc.CreateElement("secDNS:dsData", "urn:ietf:params:xml:ns:secDNS-1.1"); var keyTagNode = doc.CreateElement("secDNS:keyTag", "urn:ietf:params:xml:ns:secDNS-1.1"); keyTagNode.InnerText = KeyTag.ToString(); dataNode.AppendChild(keyTagNode); var algNode = doc.CreateElement("secDNS:alg", "urn:ietf:params:xml:ns:secDNS-1.1"); algNode.InnerText = ((int)Algorithm).ToString(); dataNode.AppendChild(algNode); var digestTypeNode = doc.CreateElement("secDNS:digestType", "urn:ietf:params:xml:ns:secDNS-1.1"); digestTypeNode.InnerText = "1"; dataNode.AppendChild(digestTypeNode); var digestNode = doc.CreateElement("secDNS:digest", "urn:ietf:params:xml:ns:secDNS-1.1"); digestNode.InnerText = Digest; dataNode.AppendChild(digestNode); return(dataNode); }
/// <summary> /// Two DnsResourceDataCertificate are equal iff their certificate type, key tag, algorithm and certificate fields are equal. /// </summary> public bool Equals(DnsResourceDataCertificate other) { return(other != null && CertificateType.Equals(other.CertificateType) && KeyTag.Equals(other.KeyTag) && Algorithm.Equals(other.Algorithm) && Certificate.Equals(other.Certificate)); }
/// <summary> /// Two DnsResourceDataDelegationSigner are equal iff their key tag, algorithm, digest type and digest fields are equal. /// </summary> public bool Equals(DnsResourceDataDelegationSigner other) { return(other != null && KeyTag.Equals(other.KeyTag) && Algorithm.Equals(other.Algorithm) && DigestType.Equals(other.DigestType) && Digest.Equals(other.Digest)); }
public override int GetHashCode() { unchecked { int hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (KeyTag != null ? KeyTag.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Modality != null ? Modality.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ExtractionIdentifiers != null ? ExtractionIdentifiers.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (KeyTag != null ? KeyTag.GetHashCode() : 0); hashCode = (hashCode * 397) ^ KeyValueCount; hashCode = (hashCode * 397) ^ (ExtractionModality != null ? ExtractionModality.GetHashCode() : 0); return(hashCode); } }
/// <summary> /// Two DnsResourceDataSignature are equal iff their type covered, algorithm, labels, original TTL, signature expiration, signature inception, key tag, /// signer's name and signature fields are equal. /// </summary> public bool Equals(DnsResourceDataSignature other) { return(other != null && TypeCovered.Equals(other.TypeCovered) && Algorithm.Equals(other.Algorithm) && Labels.Equals(other.Labels) && OriginalTtl.Equals(other.OriginalTtl) && SignatureExpiration.Equals(other.SignatureExpiration) && SignatureInception.Equals(other.SignatureInception) && KeyTag.Equals(other.KeyTag) && SignersName.Equals(other.SignersName) && Signature.Equals(other.Signature)); }
public override int GetHashCode() { unchecked { int hashCode = ExtractionJobIdentifier.GetHashCode(); hashCode = (hashCode * 397) ^ Header.GetHashCode(); hashCode = (hashCode * 397) ^ ProjectNumber.GetHashCode(); hashCode = (hashCode * 397) ^ (int)JobStatus; hashCode = (hashCode * 397) ^ ExtractionDirectory.GetHashCode(); hashCode = (hashCode * 397) ^ JobSubmittedAt.GetHashCode(); hashCode = (hashCode * 397) ^ KeyTag.GetHashCode(); hashCode = (hashCode * 397) ^ (int)KeyCount; hashCode = (hashCode * 397) ^ (ExtractionModality != null ? ExtractionModality.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsIdentifiableExtraction.GetHashCode(); hashCode = (hashCode * 397) ^ IsNoFilterExtraction.GetHashCode(); hashCode = (hashCode * 397) ^ (FailedJobInfoDoc != null ? FailedJobInfoDoc.GetHashCode() : 0); return hashCode; } }