298
298
* @author Parikshit Dutta
299
299
* @author Ankur Pathak
300
300
* @author Alexey Nesterov
301
+ * @author Yanming Zhou
301
302
* @since 5.0
302
303
*/
303
304
public class ServerHttpSecurity {
@@ -5443,8 +5444,11 @@ private OpaqueTokenSpec() {
5443
5444
public OpaqueTokenSpec introspectionUri (String introspectionUri ) {
5444
5445
Assert .hasText (introspectionUri , "introspectionUri cannot be empty" );
5445
5446
this .introspectionUri = introspectionUri ;
5446
- this .introspector = () -> new SpringReactiveOpaqueTokenIntrospector (this .introspectionUri ,
5447
- this .clientId , this .clientSecret );
5447
+ this .introspector = () -> SpringReactiveOpaqueTokenIntrospector
5448
+ .withIntrospectionUri (this .introspectionUri )
5449
+ .clientId (this .clientId )
5450
+ .clientSecret (this .clientSecret )
5451
+ .build ();
5448
5452
return this ;
5449
5453
}
5450
5454
@@ -5459,8 +5463,11 @@ public OpaqueTokenSpec introspectionClientCredentials(String clientId, String cl
5459
5463
Assert .notNull (clientSecret , "clientSecret cannot be null" );
5460
5464
this .clientId = clientId ;
5461
5465
this .clientSecret = clientSecret ;
5462
- this .introspector = () -> new SpringReactiveOpaqueTokenIntrospector (this .introspectionUri ,
5463
- this .clientId , this .clientSecret );
5466
+ this .introspector = () -> SpringReactiveOpaqueTokenIntrospector
5467
+ .withIntrospectionUri (this .introspectionUri )
5468
+ .clientId (this .clientId )
5469
+ .clientSecret (this .clientSecret )
5470
+ .build ();
5464
5471
return this ;
5465
5472
}
5466
5473
0 commit comments