22 writes to XmlEncryptor
CustomEncryptorSample (1)
CustomBuilderExtensions.cs (1)
23options.XmlEncryptor = instance;
KeyManagementSimulator (1)
Program.cs (1)
351XmlEncryptor = encryptor,
Microsoft.AspNetCore.DataProtection (5)
DataProtectionBuilderExtensions.cs (4)
225options.XmlEncryptor = new CertificateXmlEncryptor(certificate, loggerFactory); 261options.XmlEncryptor = new CertificateXmlEncryptor(thumbprint, certificateResolver, loggerFactory); 332options.XmlEncryptor = new DpapiXmlEncryptor(protectToLocalMachine, loggerFactory); 386options.XmlEncryptor = new DpapiNGXmlEncryptor(protectionDescriptorRule, flags, loggerFactory);
Internal\KeyManagementOptionsPostSetup.cs (1)
78options.XmlEncryptor = InvalidEncryptor.Instance;
Microsoft.AspNetCore.DataProtection.Tests (15)
Internal\KeyManagementOptionsPostSetupTest.cs (1)
116XmlEncryptor = new NullXmlEncryptor(),
KeyManagement\XmlKeyManagerTests.cs (14)
38XmlEncryptor = null 62XmlEncryptor = expectedXmlEncryptor 105XmlEncryptor = null 203XmlEncryptor = new NullXmlEncryptor() 309XmlEncryptor = null 604XmlEncryptor = null 631XmlEncryptor = null 681XmlEncryptor = null 736XmlEncryptor = null 802XmlEncryptor = encryptor.Object, 902XmlEncryptor = encryptor.Object, 941XmlEncryptor = null 988XmlEncryptor = null 995XmlEncryptor = null
8 references to XmlEncryptor
Microsoft.AspNetCore.DataProtection (2)
Internal\KeyManagementOptionsPostSetup.cs (1)
71if (options is { XmlRepository: null, XmlEncryptor: null })
KeyManagement\XmlKeyManager.cs (1)
99var keyEncryptor = keyManagementOptions.Value.XmlEncryptor;
Microsoft.AspNetCore.DataProtection.Tests (6)
Internal\KeyManagementOptionsPostSetupTest.cs (4)
171Assert.NotNull(options.XmlEncryptor); 172Assert.Throws<InvalidOperationException>(() => options.XmlEncryptor.Encrypt(xElement)); 190var encryptor = options.XmlEncryptor; 194options.XmlEncryptor.Encrypt(xElement);
ServiceCollectionTests.cs (2)
105Assert.NotNull(options.XmlEncryptor); 106Assert.Throws<InvalidOperationException>(() => options.XmlEncryptor.Encrypt(xElement));