Rename createJwkSet method typo

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

Issue: gh-5330
This commit is contained in:
Josh Cummings 2018-06-28 11:31:21 -06:00
parent 8ef4a5ba92
commit d7ebe5be86
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
1 changed files with 2 additions and 2 deletions

View File

@ -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<JWK> jwkList) {
private JWTClaimsSet createClaimsSet(JWT parsedToken, List<JWK> jwkList) {
try {
return this.jwtProcessor.process(parsedToken, new JWKContext(jwkList));
}