22
22
import java .util .Map ;
23
23
import java .util .Set ;
24
24
25
+ import org .jspecify .annotations .Nullable ;
26
+
25
27
import org .springframework .beans .factory .InitializingBean ;
26
28
import org .springframework .boot .context .properties .ConfigurationProperties ;
27
29
import org .springframework .boot .context .properties .NestedConfigurationProperty ;
@@ -41,7 +43,7 @@ public class OAuth2AuthorizationServerProperties implements InitializingBean {
41
43
/**
42
44
* URL of the Authorization Server's Issuer Identifier.
43
45
*/
44
- private String issuer ;
46
+ private @ Nullable String issuer ;
45
47
46
48
/**
47
49
* Whether multiple issuers are allowed per host. Using path components in the URL of
@@ -68,11 +70,11 @@ public void setMultipleIssuersAllowed(boolean multipleIssuersAllowed) {
68
70
this .multipleIssuersAllowed = multipleIssuersAllowed ;
69
71
}
70
72
71
- public String getIssuer () {
73
+ public @ Nullable String getIssuer () {
72
74
return this .issuer ;
73
75
}
74
76
75
- public void setIssuer (String issuer ) {
77
+ public void setIssuer (@ Nullable String issuer ) {
76
78
this .issuer = issuer ;
77
79
}
78
80
@@ -297,14 +299,14 @@ public static class Client {
297
299
/**
298
300
* URL for the client's JSON Web Key Set.
299
301
*/
300
- private String jwkSetUri ;
302
+ private @ Nullable String jwkSetUri ;
301
303
302
304
/**
303
305
* JWS algorithm that must be used for signing the JWT used to authenticate the
304
306
* client at the Token Endpoint for the {@code private_key_jwt} and
305
307
* {@code client_secret_jwt} authentication methods.
306
308
*/
307
- private String tokenEndpointAuthenticationSigningAlgorithm ;
309
+ private @ Nullable String tokenEndpointAuthenticationSigningAlgorithm ;
308
310
309
311
/**
310
312
* Token settings of the registered client.
@@ -332,19 +334,20 @@ public void setRequireAuthorizationConsent(boolean requireAuthorizationConsent)
332
334
this .requireAuthorizationConsent = requireAuthorizationConsent ;
333
335
}
334
336
335
- public String getJwkSetUri () {
337
+ public @ Nullable String getJwkSetUri () {
336
338
return this .jwkSetUri ;
337
339
}
338
340
339
- public void setJwkSetUri (String jwkSetUri ) {
341
+ public void setJwkSetUri (@ Nullable String jwkSetUri ) {
340
342
this .jwkSetUri = jwkSetUri ;
341
343
}
342
344
343
- public String getTokenEndpointAuthenticationSigningAlgorithm () {
345
+ public @ Nullable String getTokenEndpointAuthenticationSigningAlgorithm () {
344
346
return this .tokenEndpointAuthenticationSigningAlgorithm ;
345
347
}
346
348
347
- public void setTokenEndpointAuthenticationSigningAlgorithm (String tokenEndpointAuthenticationSigningAlgorithm ) {
349
+ public void setTokenEndpointAuthenticationSigningAlgorithm (
350
+ @ Nullable String tokenEndpointAuthenticationSigningAlgorithm ) {
348
351
this .tokenEndpointAuthenticationSigningAlgorithm = tokenEndpointAuthenticationSigningAlgorithm ;
349
352
}
350
353
@@ -362,17 +365,17 @@ public static class Registration {
362
365
/**
363
366
* Client ID of the registration.
364
367
*/
365
- private String clientId ;
368
+ private @ Nullable String clientId ;
366
369
367
370
/**
368
371
* Client secret of the registration. May be left blank for a public client.
369
372
*/
370
- private String clientSecret ;
373
+ private @ Nullable String clientSecret ;
371
374
372
375
/**
373
376
* Name of the client.
374
377
*/
375
- private String clientName ;
378
+ private @ Nullable String clientName ;
376
379
377
380
/**
378
381
* Client authentication method(s) that the client may use.
@@ -399,27 +402,27 @@ public static class Registration {
399
402
*/
400
403
private Set <String > scopes = new HashSet <>();
401
404
402
- public String getClientId () {
405
+ public @ Nullable String getClientId () {
403
406
return this .clientId ;
404
407
}
405
408
406
- public void setClientId (String clientId ) {
409
+ public void setClientId (@ Nullable String clientId ) {
407
410
this .clientId = clientId ;
408
411
}
409
412
410
- public String getClientSecret () {
413
+ public @ Nullable String getClientSecret () {
411
414
return this .clientSecret ;
412
415
}
413
416
414
- public void setClientSecret (String clientSecret ) {
417
+ public void setClientSecret (@ Nullable String clientSecret ) {
415
418
this .clientSecret = clientSecret ;
416
419
}
417
420
418
- public String getClientName () {
421
+ public @ Nullable String getClientName () {
419
422
return this .clientName ;
420
423
}
421
424
422
- public void setClientName (String clientName ) {
425
+ public void setClientName (@ Nullable String clientName ) {
423
426
this .clientName = clientName ;
424
427
}
425
428
0 commit comments