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
30
30
}
31
31
}
32
32
33
- fun signingKey (keyId : String ): JWK = signingKeys.computeIfAbsent(keyId) { keyFromDequeOrNew(keyId) }
33
+ open fun signingKey (keyId : String ): JWK = signingKeys.computeIfAbsent(keyId) { keyFromDequeOrNew(keyId) }
34
34
35
35
private fun keyFromDequeOrNew (keyId : String ): JWK =
36
36
keyDeque.poll()?.let { polledJwk ->
@@ -49,11 +49,11 @@ open class KeyProvider
49
49
}
50
50
} ? : generator.generateKey(keyId)
51
51
52
- fun algorithm (): JWSAlgorithm = JWSAlgorithm .parse(algorithm)
52
+ open fun algorithm (): JWSAlgorithm = JWSAlgorithm .parse(algorithm)
53
53
54
- fun keyType (): String = generator.keyGenerator.algorithm
54
+ open fun keyType (): String = generator.keyGenerator.algorithm
55
55
56
- fun generate (algorithm : String ) {
56
+ open fun generate (algorithm : String ) {
57
57
generator = KeyGenerator (JWSAlgorithm .parse(algorithm))
58
58
}
59
59
You can’t perform that action at this time.
0 commit comments