Skip to content

Commit 46564d6

Browse files
singhbaljitjzheaux
authored andcommitted
fix Javadocs for Jwt issuer resolvers
1 parent c9b0e3c commit 46564d6

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtIssuerAuthenticationManagerResolver.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747
* "https://openid.net/specs/openid-connect-core-1_0.html#IssuerIdentifier">Issuer</a> in
4848
* a signed JWT (JWS).
4949
*
50-
* To use, this class must be able to determine whether or not the `iss` claim is trusted.
51-
* Recall that anyone can stand up an authorization server and issue valid tokens to a
52-
* resource server. The simplest way to achieve this is to supply a list of trusted
53-
* issuers in the constructor.
50+
* To use, this class must be able to determine whether the `iss` claim is trusted. Recall
51+
* that anyone can stand up an authorization server and issue valid tokens to a resource
52+
* server. The simplest way to achieve this is to supply a list of trusted issuers in the
53+
* constructor.
5454
*
5555
* This class derives the Issuer from the `iss` claim found in the
5656
* {@link HttpServletRequest}'s
@@ -67,7 +67,7 @@ public final class JwtIssuerAuthenticationManagerResolver implements Authenticat
6767
/**
6868
* Construct a {@link JwtIssuerAuthenticationManagerResolver} using the provided
6969
* parameters
70-
* @param trustedIssuers a list of trusted issuers
70+
* @param trustedIssuers an array of trusted issuers
7171
*/
7272
public JwtIssuerAuthenticationManagerResolver(String... trustedIssuers) {
7373
this(Arrays.asList(trustedIssuers));
@@ -76,7 +76,7 @@ public JwtIssuerAuthenticationManagerResolver(String... trustedIssuers) {
7676
/**
7777
* Construct a {@link JwtIssuerAuthenticationManagerResolver} using the provided
7878
* parameters
79-
* @param trustedIssuers a list of trusted issuers
79+
* @param trustedIssuers a collection of trusted issuers
8080
*/
8181
public JwtIssuerAuthenticationManagerResolver(Collection<String> trustedIssuers) {
8282
Assert.notEmpty(trustedIssuers, "trustedIssuers cannot be empty");
@@ -90,8 +90,8 @@ public JwtIssuerAuthenticationManagerResolver(Collection<String> trustedIssuers)
9090
* parameters
9191
*
9292
* Note that the {@link AuthenticationManagerResolver} provided in this constructor
93-
* will need to verify that the issuer is trusted. This should be done via an
94-
* allowlist.
93+
* will need to verify that the issuer is trusted. This should be done via an allowed
94+
* list of issuers.
9595
*
9696
* One way to achieve this is with a {@link Map} where the keys are the known issuers:
9797
* <pre>

oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtIssuerReactiveAuthenticationManagerResolver.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646
* "https://openid.net/specs/openid-connect-core-1_0.html#IssuerIdentifier">Issuer</a> in
4747
* a signed JWT (JWS).
4848
*
49-
* To use, this class must be able to determine whether or not the `iss` claim is trusted.
50-
* Recall that anyone can stand up an authorization server and issue valid tokens to a
51-
* resource server. The simplest way to achieve this is to supply a list of trusted
52-
* issuers in the constructor.
49+
* To use, this class must be able to determine whether the `iss` claim is trusted. Recall
50+
* that anyone can stand up an authorization server and issue valid tokens to a resource
51+
* server. The simplest way to achieve this is to supply a list of trusted issuers in the
52+
* constructor.
5353
*
5454
* This class derives the Issuer from the `iss` claim found in the
5555
* {@link ServerWebExchange}'s
@@ -68,7 +68,7 @@ public final class JwtIssuerReactiveAuthenticationManagerResolver
6868
/**
6969
* Construct a {@link JwtIssuerReactiveAuthenticationManagerResolver} using the
7070
* provided parameters
71-
* @param trustedIssuers a list of trusted issuers
71+
* @param trustedIssuers an array of trusted issuers
7272
*/
7373
public JwtIssuerReactiveAuthenticationManagerResolver(String... trustedIssuers) {
7474
this(Arrays.asList(trustedIssuers));

0 commit comments

Comments
 (0)