Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
ngocnhan-tran1996 committed Dec 21, 2024
1 parent 51d8011 commit a53a7df
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,17 @@ private Collection<GrantedAuthority> authorities(List<String> scopes) {
return authorities;
}

/**
* Creates a {@code SpringOpaqueTokenIntrospector.Builder} with the given introspection endpoint uri
* @param introspectionUri The introspection endpoint uri
* @return the {@link SpringOpaqueTokenIntrospector.Builder}
* @since 6.5
*/
public static Builder withIntrospectionUri(String introspectionUri) {
Assert.notNull(introspectionUri, "introspectionUri cannot be null");
return new Builder(introspectionUri);
}

// gh-7563
private static final class ArrayListFromString extends ArrayList<String> {

Expand All @@ -299,17 +310,6 @@ default List<String> getScopes() {

}

/**
* Creates a {@code SpringOpaqueTokenIntrospector.Builder} with the given introspection endpoint uri
* @param introspectionUri The introspection endpoint uri
* @return the {@link SpringOpaqueTokenIntrospector.Builder}
* @since 6.5
*/
public static Builder withIntrospectionUri(String introspectionUri) {
Assert.notNull(introspectionUri, "introspectionUri cannot be null");
return new Builder(introspectionUri);
}

/**
* Used to build {@link SpringOpaqueTokenIntrospector}.
*
Expand Down Expand Up @@ -364,7 +364,7 @@ public Builder clientId(String clientId) {
public Builder clientSecret(String clientSecret, Charset charset) {
Assert.notNull(clientSecret, "clientSecret cannot be null");
Assert.notNull(charset, "charset cannot be null");
this.clientId = URLEncoder.encode(clientSecret, charset);
this.clientSecret = URLEncoder.encode(clientSecret, charset);
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,17 @@ private Collection<GrantedAuthority> authorities(List<String> scopes) {
return authorities;
}

/**
* Creates a {@code SpringReactiveOpaqueTokenIntrospector.Builder} with the given introspection endpoint uri
* @param introspectionUri The introspection endpoint uri
* @return the {@link SpringReactiveOpaqueTokenIntrospector.Builder}
* @since 6.5
*/
public static Builder withIntrospectionUri(String introspectionUri) {

return new Builder(introspectionUri);
}

// gh-7563
private static final class ArrayListFromString extends ArrayList<String> {

Expand All @@ -253,17 +264,6 @@ default List<String> getScopes() {

}

/**
* Creates a {@code SpringReactiveOpaqueTokenIntrospector.Builder} with the given introspection endpoint uri
* @param introspectionUri The introspection endpoint uri
* @return the {@link SpringReactiveOpaqueTokenIntrospector.Builder}
* @since 6.5
*/
public static Builder withIntrospectionUri(String introspectionUri) {

return new Builder(introspectionUri);
}

/**
* Used to build {@link SpringReactiveOpaqueTokenIntrospector}.
*
Expand Down Expand Up @@ -318,7 +318,7 @@ public Builder clientId(String clientId) {
public Builder clientSecret(String clientSecret, Charset charset) {
Assert.notNull(clientSecret, "clientSecret cannot be null");
Assert.notNull(charset, "charset cannot be null");
this.clientId = URLEncoder.encode(clientSecret, charset);
this.clientSecret = URLEncoder.encode(clientSecret, charset);
return this;
}

Expand Down

0 comments on commit a53a7df

Please sign in to comment.