7 references to XmlConstants
Microsoft.AspNetCore.DataProtection (7)
AuthenticatedEncryption\ConfigurationModel\XmlExtensions.cs (2)
17return ((bool?)element.Attribute(XmlConstants.RequiresEncryptionAttributeName)).GetValueOrDefault(); 28element.SetAttributeValue(XmlConstants.RequiresEncryptionAttributeName, true);
XmlEncryption\XmlEncryptionExtensions.cs (5)
39var elementWhichRequiresDecryption = doc.Descendants(XmlConstants.EncryptedSecretElementName).FirstOrDefault(); 50string decryptorTypeName = (string)clonedElementWhichRequiresDecryption.Attribute(XmlConstants.DecryptorTypeAttributeName)!; 150new XElement(XmlConstants.EncryptedSecretElementName, 151new XAttribute(XmlConstants.DecryptorTypeAttributeName, entry.Value.DecryptorType.AssemblyQualifiedName!), 204return element.DescendantsAndSelf(XmlConstants.EncryptedSecretElementName).Any();