diff --git a/oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/NimbusReactiveJwtDecoder.java b/oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/NimbusReactiveJwtDecoder.java index be428ab0e3..4b439f57f5 100644 --- a/oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/NimbusReactiveJwtDecoder.java +++ b/oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/NimbusReactiveJwtDecoder.java @@ -127,7 +127,7 @@ public final class NimbusReactiveJwtDecoder implements ReactiveJwtDecoder { JWKSelector selector = this.jwkSelectorFactory .createSelector(parsedToken.getHeader()); return this.reactiveJwkSource.get(selector) - .map(jwkList -> createJwkSet(parsedToken, jwkList)) + .map(jwkList -> createClaimsSet(parsedToken, jwkList)) .map(set -> createJwt(parsedToken, set)) .onErrorMap(e -> new JwtException("An error occurred while attempting to decode the Jwt: ", e)); } catch (RuntimeException ex) { @@ -135,7 +135,7 @@ public final class NimbusReactiveJwtDecoder implements ReactiveJwtDecoder { } } - private JWTClaimsSet createJwkSet(JWT parsedToken, List jwkList) { + private JWTClaimsSet createClaimsSet(JWT parsedToken, List jwkList) { try { return this.jwtProcessor.process(parsedToken, new JWKContext(jwkList)); }