1 implementation of ResolveDefaultKeyPolicy
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\DefaultKeyResolver.cs (1)
212
public DefaultKeyResolution
ResolveDefaultKeyPolicy
(DateTimeOffset now, IEnumerable<IKey> allKeys)
5 references to ResolveDefaultKeyPolicy
Microsoft.AspNetCore.DataProtection (2)
KeyManagement\KeyRingProvider.cs (2)
88
var defaultKeyPolicy = _defaultKeyResolver.
ResolveDefaultKeyPolicy
(now, allKeys);
120
(_defaultKeyResolver.
ResolveDefaultKeyPolicy
(defaultKeyExpirationDate, allKeys).DefaultKey is not { } nextDefaultKey ||
Microsoft.AspNetCore.DataProtection.Tests (3)
KeyManagement\DefaultKeyResolverTests.cs (2)
23
var resolution = resolver.
ResolveDefaultKeyPolicy
(DateTimeOffset.Now, new IKey[0]);
488
return resolver.
ResolveDefaultKeyPolicy
(DateTimeOffset.ParseExact(now, "u", CultureInfo.InvariantCulture), (IEnumerable<IKey>)allKeys);
KeyManagement\KeyRingProviderTests.cs (1)
795
mockDefaultKeyResolver.Setup(o => o.
ResolveDefaultKeyPolicy
(It.IsAny<DateTimeOffset>(), It.IsAny<IEnumerable<IKey>>()))