2 implementations of ExpirationDate
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\Key.cs (1)
120
public DateTimeOffset
ExpirationDate
{ get; }
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingTests.cs (1)
111
public DateTimeOffset
ExpirationDate
{ get; }
16 references to ExpirationDate
Microsoft.AspNetCore.DataProtection (8)
KeyManagement\DefaultKeyResolver.cs (1)
169
_logger.ConsideringKeyWithExpirationDateAsDefaultKey(preferredDefaultKey.KeyId, preferredDefaultKey.
ExpirationDate
);
KeyManagement\KeyExtensions.cs (1)
12
return (key.
ExpirationDate
<= now);
KeyManagement\KeyRingProvider.cs (6)
117
var defaultKeyExpirationDate = defaultKey.
ExpirationDate
;
121
nextDefaultKey.
ExpirationDate
< minExpirationDate);
146
_logger.UsingFallbackKeyWithExpirationAsDefaultKey(keyToUse.KeyId, keyToUse.
ExpirationDate
);
166
var newKey = _keyManager.CreateNewKey(activationDate: defaultKey.
ExpirationDate
, expirationDate: now + _newKeyLifetime);
198
expirationTime: (defaultKey.
ExpirationDate
<= now) ? nextAutoRefreshTime : Min(defaultKey.
ExpirationDate
, nextAutoRefreshTime),
Microsoft.AspNetCore.DataProtection.Tests (8)
KeyManagement\DefaultKeyResolverTests.cs (1)
464
mockKey.Setup(o => o.
ExpirationDate
).Returns(expirationDate);
KeyManagement\KeyRingProviderTests.cs (3)
79
Tuple.Create(key1.
ExpirationDate
, (IEnumerable<IKey>)allKeys, new DefaultKeyResolution()
291
Tuple.Create(key1.
ExpirationDate
, (DateTimeOffset)now + TimeSpan.FromDays(90), CreateKey())
941
mockKey.Setup(o => o.
ExpirationDate
).Returns(expirationDate);
KeyManagement\XmlKeyManagerTests.cs (4)
132
Assert.Equal(expirationDate, newKey.
ExpirationDate
);
230
Assert.Equal(expirationDate, newKey.
ExpirationDate
);
375
Assert.Equal(XmlConvert.ToDateTimeOffset("2015-03-01T00:00:00Z"), keys[0].
ExpirationDate
);
381
Assert.Equal(XmlConvert.ToDateTimeOffset("2015-06-01T00:00:00Z"), keys[1].
ExpirationDate
);