public void ShouldGenerateFiveDefaultSigning() { _options.Setup(s => s.Value).Returns(new JwksOptions() { KeyPrefix = $"{nameof(JsonWebKeySetServiceTests)}_" }); _store.Clear(); var keysGenerated = new List <SigningCredentials>(); for (int i = 0; i < 5; i++) { var sign = _jwksService.GenerateSigningCredentials(); keysGenerated.Add(sign); } var current = _jwksService.GetLastKeysCredentials(JsonWebKeyType.Jws, 5); foreach (var securityKey in current) { keysGenerated.Should().Contain(s => s.Kid == securityKey.KeyId); } }
public void Clear() { _jsonWebKeyStore.Clear(); }
public async Task Clear() { await _store.Clear(); }
public async Task Clear() { await _jsonWebKeyStore.Clear(); }