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