6 implementations of IXmlEncryptor
CustomEncryptorSample (1)
CustomXmlEncryptor.cs (1)
11public class CustomXmlEncryptor : IXmlEncryptor
Microsoft.AspNetCore.DataProtection (5)
Internal\KeyManagementOptionsPostSetup.cs (1)
91private sealed class InvalidEncryptor : IXmlEncryptor
XmlEncryption\CertificateXmlEncryptor.cs (1)
19public sealed class CertificateXmlEncryptor : IInternalCertificateXmlEncryptor, IXmlEncryptor
XmlEncryption\DpapiNGXmlEncryptor.cs (1)
24public sealed class DpapiNGXmlEncryptor : IXmlEncryptor
XmlEncryption\DpapiXmlEncryptor.cs (1)
22public sealed class DpapiXmlEncryptor : IXmlEncryptor
XmlEncryption\NullXmlEncryptor.cs (1)
14public sealed class NullXmlEncryptor : IXmlEncryptor
28 references to IXmlEncryptor
CustomEncryptorSample (2)
CustomBuilderExtensions.cs (2)
16Func<IServiceProvider, IXmlEncryptor> factory) 20var instance = factory(serviceProvider);
KeyManagementSimulator (3)
Program.cs (3)
326public AppInstance(int instanceNumber, IXmlEncryptor encryptor, IXmlDecryptor decryptor, IXmlRepository repository, Random productRandom) 551sealed class FlakyXmlEncryptor(Random random, double pFail) : FlakyObject(random, pFail), IXmlEncryptor 557EncryptedXmlInfo IXmlEncryptor.Encrypt(XElement plaintextElement)
Microsoft.AspNetCore.DataProtection (13)
Internal\KeyManagementOptionsPostSetup.cs (2)
93public static readonly IXmlEncryptor Instance = new InvalidEncryptor(); 99EncryptedXmlInfo IXmlEncryptor.Encrypt(XElement plaintextElement)
KeyManagement\KeyManagementOptions.cs (2)
157/// The <see cref="IXmlEncryptor"/> to use for encrypting XML elements. 159public IXmlEncryptor? XmlEncryptor { get; set; }
KeyManagement\XmlKeyManager.cs (5)
99var keyEncryptor = keyManagementOptions.Value.XmlEncryptor; 136internal IXmlEncryptor? KeyEncryptor { get; } 645internal KeyValuePair<IXmlRepository, IXmlEncryptor?> GetFallbackKeyRepositoryEncryptorPair() 648IXmlEncryptor? encryptor = null; 718return new KeyValuePair<IXmlRepository, IXmlEncryptor?>(repository, encryptor);
XmlEncryption\CertificateXmlEncryptor.cs (1)
17/// An <see cref="IXmlEncryptor"/> that can perform XML encryption by using an X.509 certificate.
XmlEncryption\DpapiXmlEncryptor.cs (1)
16/// An <see cref="IXmlEncryptor"/> that encrypts XML by using Windows DPAPI.
XmlEncryption\NullXmlEncryptor.cs (1)
12/// An <see cref="IXmlEncryptor"/> that encrypts XML elements with a null encryptor.
XmlEncryption\XmlEncryptionExtensions.cs (1)
101public static XElement? EncryptIfNecessary(this IXmlEncryptor encryptor, XElement element)
Microsoft.AspNetCore.DataProtection.Tests (10)
Internal\KeyManagementOptionsPostSetupTest.cs (1)
190var encryptor = options.XmlEncryptor;
KeyManagement\XmlKeyManagerTests.cs (4)
57var expectedXmlEncryptor = new Mock<IXmlEncryptor>().Object; 783var encryptor = new Mock<IXmlEncryptor>(MockBehavior.Strict); 864var encryptor = new Mock<IXmlEncryptor>(MockBehavior.Strict);
XmlEncryption\XmlEncryptionExtensionsTests.cs (5)
201var xmlEncryptor = new Mock<IXmlEncryptor>(MockBehavior.Strict).Object; 216var mockXmlEncryptor = new Mock<IXmlEncryptor>(); 262var mockXmlEncryptor = new Mock<IXmlEncryptor>(); 311var mockXmlEncryptor = new Mock<IXmlEncryptor>();