2 implementations of CreationDate
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\Key.cs (1)
118public DateTimeOffset CreationDate { get; }
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingTests.cs (1)
110public DateTimeOffset CreationDate { get; }
11 references to CreationDate
KeyManagementSample (2)
Program.cs (2)
41Console.WriteLine($"Key {key.KeyId:B}: Created = {key.CreationDate:u}, IsRevoked = {key.IsRevoked}"); 59Console.WriteLine($"Key {key.KeyId:B}: Created = {key.CreationDate:u}, IsRevoked = {key.IsRevoked}");
Microsoft.AspNetCore.DataProtection (4)
KeyManagement\DefaultKeyResolver.cs (4)
198where key.CreationDate <= now - _keyPropagationWindow 199orderby key.CreationDate descending 201where key.CreationDate > now - _keyPropagationWindow 202orderby key.CreationDate ascending
Microsoft.AspNetCore.DataProtection.Tests (5)
KeyManagement\DefaultKeyResolverTests.cs (1)
462mockKey.Setup(o => o.CreationDate).Returns(creationDate ?? DateTimeOffset.MinValue);
KeyManagement\XmlKeyManagerTests.cs (4)
130Assert.Equal(creationDate, newKey.CreationDate); 228Assert.Equal(creationDate, newKey.CreationDate); 373Assert.Equal(XmlConvert.ToDateTimeOffset("2015-01-01T00:00:00Z"), keys[0].CreationDate); 379Assert.Equal(XmlConvert.ToDateTimeOffset("2015-04-01T00:00:00Z"), keys[1].CreationDate);