Skip to content

Commit 4c55b48

Browse files
committed
Do not use random key identifiers in JWS headers
1 parent a5404fe commit 4c55b48

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

vck/src/commonMain/kotlin/at/asitplus/wallet/lib/agent/KeyMaterial.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interface KeyMaterial : Signer {
3232
suspend fun getCertificate(): X509Certificate?
3333

3434
val jsonWebKey: JsonWebKey
35-
get() = publicKey.toJsonWebKey(identifier)
35+
get() = publicKey.toJsonWebKey(null)
3636
}
3737

3838
/**
@@ -41,6 +41,9 @@ interface KeyMaterial : Signer {
4141
interface PublishedKeyMaterial : KeyMaterial {
4242
/** Can be used by clients to look up this key in a [at.asitplus.signum.indispensable.josef.JsonWebKeySet]. */
4343
val keySetUrl: String?
44+
45+
override val jsonWebKey: JsonWebKey
46+
get() = publicKey.toJsonWebKey(identifier)
4447
}
4548

4649
abstract class KeyWithSelfSignedCert(

0 commit comments

Comments
 (0)