File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/kotlin/no/nav/security/mock/oauth2/token Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ open class KeyProvider
3030 }
3131 }
3232
33- fun signingKey (keyId : String ): JWK = signingKeys.computeIfAbsent(keyId) { keyFromDequeOrNew(keyId) }
33+ open fun signingKey (keyId : String ): JWK = signingKeys.computeIfAbsent(keyId) { keyFromDequeOrNew(keyId) }
3434
3535 private fun keyFromDequeOrNew (keyId : String ): JWK =
3636 keyDeque.poll()?.let { polledJwk ->
@@ -49,11 +49,11 @@ open class KeyProvider
4949 }
5050 } ? : generator.generateKey(keyId)
5151
52- fun algorithm (): JWSAlgorithm = JWSAlgorithm .parse(algorithm)
52+ open fun algorithm (): JWSAlgorithm = JWSAlgorithm .parse(algorithm)
5353
54- fun keyType (): String = generator.keyGenerator.algorithm
54+ open fun keyType (): String = generator.keyGenerator.algorithm
5555
56- fun generate (algorithm : String ) {
56+ open fun generate (algorithm : String ) {
5757 generator = KeyGenerator (JWSAlgorithm .parse(algorithm))
5858 }
5959
You can’t perform that action at this time.
0 commit comments