Skip to content

Commit fbf5301

Browse files
committed
formatting
1 parent cca8821 commit fbf5301

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/JwtClientAssertionDecoderFactory.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,16 @@ public final class JwtClientAssertionDecoderFactory implements JwtDecoderFactory
8888
mappings.put(MacAlgorithm.HS512, "HmacSHA512");
8989
JCA_ALGORITHM_MAPPINGS = Collections.unmodifiableMap(mappings);
9090
}
91+
9192
private static final RestTemplate rest = new RestTemplate();
93+
9294
static {
9395
SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory();
9496
requestFactory.setConnectTimeout(15_000);
9597
requestFactory.setReadTimeout(15_000);
9698
rest.setRequestFactory(requestFactory);
9799
}
100+
98101
private final Map<String, JwtDecoder> jwtDecoders = new ConcurrentHashMap<>();
99102
private Function<RegisteredClient, OAuth2TokenValidator<Jwt>> jwtValidatorFactory = DEFAULT_JWT_VALIDATOR_FACTORY;
100103

@@ -132,7 +135,8 @@ private static NimbusJwtDecoder buildDecoder(RegisteredClient registeredClient)
132135
JWT_CLIENT_AUTHENTICATION_ERROR_URI);
133136
throw new OAuth2AuthenticationException(oauth2Error);
134137
}
135-
return NimbusJwtDecoder.withJwkSetUri(jwkSetUrl).jwsAlgorithm((SignatureAlgorithm) jwsAlgorithm).restOperations(rest).build();
138+
return NimbusJwtDecoder.withJwkSetUri(jwkSetUrl).jwsAlgorithm((SignatureAlgorithm) jwsAlgorithm)
139+
.restOperations(rest).build();
136140
}
137141
if (jwsAlgorithm instanceof MacAlgorithm) {
138142
String clientSecret = registeredClient.getClientSecret();

0 commit comments

Comments
 (0)