Skip to content

Commit 2850b27

Browse files
alurysharadjzheaux
authored andcommitted
Reactive JwkSource Builder Parameter Type
Changed the parameter type from JWT to SignedJWT Fixes: gh-6771
1 parent 6f5fa1b commit 2850b27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/NimbusReactiveJwtDecoder.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public static SecretKeyReactiveJwtDecoderBuilder withSecretKey(SecretKey secretK
223223
*
224224
* @since 5.2
225225
*/
226-
public static JwkSourceReactiveJwtDecoderBuilder withJwkSource(Function<JWT, Flux<JWK>> source) {
226+
public static JwkSourceReactiveJwtDecoderBuilder withJwkSource(Function<SignedJWT, Flux<JWK>> source) {
227227
return new JwkSourceReactiveJwtDecoderBuilder(source);
228228
}
229229

@@ -434,10 +434,10 @@ Converter<SignedJWT, Mono<JWTClaimsSet>> processor() {
434434
* @since 5.2
435435
*/
436436
public static final class JwkSourceReactiveJwtDecoderBuilder {
437-
private final Function<JWT, Flux<JWK>> jwkSource;
437+
private final Function<SignedJWT, Flux<JWK>> jwkSource;
438438
private JWSAlgorithm jwsAlgorithm = JWSAlgorithm.RS256;
439439

440-
private JwkSourceReactiveJwtDecoderBuilder(Function<JWT, Flux<JWK>> jwkSource) {
440+
private JwkSourceReactiveJwtDecoderBuilder(Function<SignedJWT, Flux<JWK>> jwkSource) {
441441
Assert.notNull(jwkSource, "jwkSource cannot be null");
442442
this.jwkSource = jwkSource;
443443
}

0 commit comments

Comments
 (0)