File: XmlEncryption\IXmlDecryptor.cs
Web Access
Project: src\src\DataProtection\DataProtection\src\Microsoft.AspNetCore.DataProtection.csproj (Microsoft.AspNetCore.DataProtection)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Xml.Linq;
 
namespace Microsoft.AspNetCore.DataProtection.XmlEncryption;
 
/// <summary>
/// The basic interface for decrypting an XML element.
/// </summary>
public interface IXmlDecryptor
{
    /// <summary>
    /// Decrypts the specified XML element.
    /// </summary>
    /// <param name="encryptedElement">An encrypted XML element.</param>
    /// <returns>The decrypted form of <paramref name="encryptedElement"/>.</returns>
    /// <remarks>
    /// Implementations of this method must not mutate the <see cref="XElement"/>
    /// instance provided by <paramref name="encryptedElement"/>.
    /// </remarks>
    XElement Decrypt(XElement encryptedElement);
}