File tree 2 files changed +9
-8
lines changed
oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 52
52
import org .springframework .http .ResponseEntity ;
53
53
import org .springframework .security .oauth2 .core .OAuth2TokenValidator ;
54
54
import org .springframework .security .oauth2 .core .OAuth2TokenValidatorResult ;
55
+ import org .springframework .security .oauth2 .jose .jws .JwsAlgorithm ;
55
56
import org .springframework .security .oauth2 .jose .jws .MacAlgorithm ;
56
57
import org .springframework .security .oauth2 .jose .jws .SignatureAlgorithm ;
57
58
import org .springframework .util .Assert ;
@@ -221,12 +222,12 @@ private JwkSetUriJwtDecoderBuilder(String jwkSetUri) {
221
222
* Use the given signing
222
223
* <a href="https://tools.ietf.org/html/rfc7515#section-4.1.1" target="_blank">algorithm</a>.
223
224
*
224
- * @param signatureAlgorithm the algorithm to use
225
+ * @param jwsAlgorithm the algorithm to use
225
226
* @return a {@link JwkSetUriJwtDecoderBuilder} for further configurations
226
227
*/
227
- public JwkSetUriJwtDecoderBuilder jwsAlgorithm (SignatureAlgorithm signatureAlgorithm ) {
228
- Assert .notNull (signatureAlgorithm , "signatureAlgorithm cannot be null" );
229
- this .jwsAlgorithm = JWSAlgorithm .parse (signatureAlgorithm .getName ());
228
+ public JwkSetUriJwtDecoderBuilder jwsAlgorithm (JwsAlgorithm jwsAlgorithm ) {
229
+ Assert .notNull (jwsAlgorithm , "jwsAlgorithm cannot be null" );
230
+ this .jwsAlgorithm = JWSAlgorithm .parse (jwsAlgorithm .getName ());
230
231
return this ;
231
232
}
232
233
Original file line number Diff line number Diff line change @@ -245,12 +245,12 @@ private JwkSetUriReactiveJwtDecoderBuilder(String jwkSetUri) {
245
245
* Use the given signing
246
246
* <a href="https://tools.ietf.org/html/rfc7515#section-4.1.1" target="_blank">algorithm</a>.
247
247
*
248
- * @param signatureAlgorithm the algorithm to use
248
+ * @param jwsAlgorithm the algorithm to use
249
249
* @return a {@link JwkSetUriReactiveJwtDecoderBuilder} for further configurations
250
250
*/
251
- public JwkSetUriReactiveJwtDecoderBuilder jwsAlgorithm (SignatureAlgorithm signatureAlgorithm ) {
252
- Assert .notNull (signatureAlgorithm , "sig cannot be null" );
253
- this .jwsAlgorithm = JWSAlgorithm .parse (signatureAlgorithm .getName ());
251
+ public JwkSetUriReactiveJwtDecoderBuilder jwsAlgorithm (JwsAlgorithm jwsAlgorithm ) {
252
+ Assert .notNull (jwsAlgorithm , "jwsAlgorithm cannot be null" );
253
+ this .jwsAlgorithm = JWSAlgorithm .parse (jwsAlgorithm .getName ());
254
254
return this ;
255
255
}
256
256
You can’t perform that action at this time.
0 commit comments