Browse Source

Rename createJwkSet method typo

Actually, it is creating a claims set, just a typo.

Issue: gh-5330
pull/5473/head
Josh Cummings 8 years ago
parent
commit
d7ebe5be86
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
  1. 4
      oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/NimbusReactiveJwtDecoder.java

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

@ -127,7 +127,7 @@ public final class NimbusReactiveJwtDecoder implements ReactiveJwtDecoder { @@ -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 { @@ -135,7 +135,7 @@ public final class NimbusReactiveJwtDecoder implements ReactiveJwtDecoder {
}
}
private JWTClaimsSet createJwkSet(JWT parsedToken, List<JWK> jwkList) {
private JWTClaimsSet createClaimsSet(JWT parsedToken, List<JWK> jwkList) {
try {
return this.jwtProcessor.process(parsedToken, new JWKContext(jwkList));
}

Loading…
Cancel
Save