This commit is contained in:
master
2026-02-04 19:59:20 +02:00
parent 557feefdc3
commit 5548cf83bf
1479 changed files with 53557 additions and 40339 deletions

View File

@@ -0,0 +1,26 @@
// SPDX-License-Identifier: BUSL-1.1
// Sprint: SPRINT_4100_0006_0002 - eIDAS Crypto Plugin Tests
using StellaOps.Cryptography;
using StellaOps.TestKit;
using Xunit;
namespace StellaOps.Cryptography.Plugin.EIDAS.Tests;
public partial class EidasCryptoProviderTests
{
[Trait("Category", TestCategories.Unit)]
[Fact]
public void ExportPublicJsonWebKey_ReturnsStubJwk()
{
var keyRef = new CryptoKeyReference("test-key-local");
var signer = _provider.GetSigner("ECDSA-P256", keyRef);
var jwk = signer.ExportPublicJsonWebKey();
Assert.NotNull(jwk);
Assert.Equal("EC", jwk.Kty);
Assert.Equal("P-256", jwk.Crv);
Assert.Equal("sig", jwk.Use);
Assert.Equal("test-key-local", jwk.Kid);
}
}