1 implementation of CreateNewKey
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\XmlKeyManager.cs (1)
145public IKey CreateNewKey(DateTimeOffset activationDate, DateTimeOffset expirationDate)
4 references to CreateNewKey
KeyManagementSample (1)
Program.cs (1)
49keyManager.CreateNewKey(
Microsoft.AspNetCore.DataProtection (2)
KeyManagement\KeyRingProvider.cs (2)
158var newKey = _keyManager.CreateNewKey(activationDate: now, expirationDate: now + _newKeyLifetime); 166var newKey = _keyManager.CreateNewKey(activationDate: defaultKey.ExpirationDate, expirationDate: now + _newKeyLifetime);
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingProviderTests.cs (1)
782mockKeyManager.Setup(o => o.CreateNewKey(It.IsAny<DateTimeOffset>(), It.IsAny<DateTimeOffset>()))