From f052ad5b4900291996dbd863d31e88cc0263c2a7 Mon Sep 17 00:00:00 2001 From: Tim Schauder Date: Fri, 9 Aug 2024 10:43:37 +0200 Subject: [PATCH] Change naming of issuerPublicKeyPEM --- .../ec/eudi/verifier/endpoint/port/input/PostZkpJwkRequest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/eu/europa/ec/eudi/verifier/endpoint/port/input/PostZkpJwkRequest.kt b/src/main/kotlin/eu/europa/ec/eudi/verifier/endpoint/port/input/PostZkpJwkRequest.kt index c4158d19..1d6c9a74 100644 --- a/src/main/kotlin/eu/europa/ec/eudi/verifier/endpoint/port/input/PostZkpJwkRequest.kt +++ b/src/main/kotlin/eu/europa/ec/eudi/verifier/endpoint/port/input/PostZkpJwkRequest.kt @@ -49,7 +49,7 @@ data class EphemeralKeyResponse( val y: String, ) -private const val publicKeyPEM = """ +private const val issuerPublicKeyPEM = """ -----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEsFu+Nl1NXvC8RM/IXiXLu8MVA7X7 mXT3Jnvb5uHxK/5JZxi0wqzGQ11KjZvUF8Ftc/oGAzWdPmTwGEg5ZD293g== @@ -72,7 +72,7 @@ class PostZkpJwkRequestLive( context(Raise) override suspend operator fun invoke(request: ServerRequest, requestId: RequestId): List { - val pem = publicKeyPEM.replace("-----BEGIN PUBLIC KEY-----", "").replace("-----END PUBLIC KEY-----", "") + val pem = issuerPublicKeyPEM.replace("-----BEGIN PUBLIC KEY-----", "").replace("-----END PUBLIC KEY-----", "") val keyBytes = Base64.getDecoder().decode(pem) val keySpec = X509EncodedKeySpec(keyBytes) val keyFactory = KeyFactory.getInstance("EC")