Reactive JwkSource Builder Parameter Type

Changed the parameter type from JWT to SignedJWT

Fixes: gh-6771
This commit is contained in:
Sharad Alury 2019-05-01 11:23:15 +05:30 committed by Josh Cummings
parent 6f5fa1b610
commit 2850b273ea
1 changed files with 3 additions and 3 deletions

View File

@ -223,7 +223,7 @@ public final class NimbusReactiveJwtDecoder implements ReactiveJwtDecoder {
* *
* @since 5.2 * @since 5.2
*/ */
public static JwkSourceReactiveJwtDecoderBuilder withJwkSource(Function<JWT, Flux<JWK>> source) { public static JwkSourceReactiveJwtDecoderBuilder withJwkSource(Function<SignedJWT, Flux<JWK>> source) {
return new JwkSourceReactiveJwtDecoderBuilder(source); return new JwkSourceReactiveJwtDecoderBuilder(source);
} }
@ -434,10 +434,10 @@ public final class NimbusReactiveJwtDecoder implements ReactiveJwtDecoder {
* @since 5.2 * @since 5.2
*/ */
public static final class JwkSourceReactiveJwtDecoderBuilder { public static final class JwkSourceReactiveJwtDecoderBuilder {
private final Function<JWT, Flux<JWK>> jwkSource; private final Function<SignedJWT, Flux<JWK>> jwkSource;
private JWSAlgorithm jwsAlgorithm = JWSAlgorithm.RS256; private JWSAlgorithm jwsAlgorithm = JWSAlgorithm.RS256;
private JwkSourceReactiveJwtDecoderBuilder(Function<JWT, Flux<JWK>> jwkSource) { private JwkSourceReactiveJwtDecoderBuilder(Function<SignedJWT, Flux<JWK>> jwkSource) {
Assert.notNull(jwkSource, "jwkSource cannot be null"); Assert.notNull(jwkSource, "jwkSource cannot be null");
this.jwkSource = jwkSource; this.jwkSource = jwkSource;
} }