From 50adb6abcb71e8c91bff13871c7ef07eb6d51225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edd=C3=BA=20Mel=C3=A9ndez?= Date: Thu, 25 Jul 2019 22:43:37 -0500 Subject: [PATCH] Fix javadoc --- .../security/config/web/server/ServerHttpSecurity.java | 2 +- .../security/oauth2/jwt/JwtTimestampValidator.java | 3 +-- .../resource/authentication/JwtAuthenticationProvider.java | 2 +- .../OAuth2IntrospectionAuthenticationProvider.java | 2 +- .../OAuth2IntrospectionReactiveAuthenticationManager.java | 2 +- .../resource/web/BearerTokenAuthenticationEntryPoint.java | 2 +- .../resource/web/access/BearerTokenAccessDeniedHandler.java | 2 +- .../security/web/header/writers/HstsHeaderWriter.java | 2 +- 8 files changed, 8 insertions(+), 9 deletions(-) diff --git a/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java b/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java index 018167c579..0f6688659b 100644 --- a/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java +++ b/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java @@ -2223,7 +2223,7 @@ public class ServerHttpSecurity { /** * Builds the {@link SecurityWebFilterChain} - * @return the {@link SecurityWebFilterChain + * @return the {@link SecurityWebFilterChain} */ public SecurityWebFilterChain build() { if (this.built != null) { diff --git a/oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/JwtTimestampValidator.java b/oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/JwtTimestampValidator.java index aa71815638..1c8356851b 100644 --- a/oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/JwtTimestampValidator.java +++ b/oauth2/oauth2-jose/src/main/java/org/springframework/security/oauth2/jwt/JwtTimestampValidator.java @@ -24,11 +24,10 @@ import org.springframework.security.oauth2.core.OAuth2Error; import org.springframework.security.oauth2.core.OAuth2ErrorCodes; import org.springframework.security.oauth2.core.OAuth2TokenValidator; import org.springframework.security.oauth2.core.OAuth2TokenValidatorResult; -import org.springframework.security.oauth2.jwt.Jwt; import org.springframework.util.Assert; /** - * An implementation of {@see OAuth2TokenValidator} for verifying claims in a Jwt-based access token + * An implementation of {@link OAuth2TokenValidator} for verifying claims in a Jwt-based access token * *

* Because clocks can differ between the Jwt source, say the Authorization Server, and its destination, say the diff --git a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtAuthenticationProvider.java b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtAuthenticationProvider.java index cc4e10875c..35bcfc1b3a 100644 --- a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtAuthenticationProvider.java +++ b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtAuthenticationProvider.java @@ -41,7 +41,7 @@ import org.springframework.util.Assert; *

*

* This {@link AuthenticationProvider} is responsible for decoding and verifying a {@link Jwt}-encoded access token, - * returning its claims set as part of the {@see Authentication} statement. + * returning its claims set as part of the {@link Authentication} statement. *

*

* Scopes are translated into {@link GrantedAuthority}s according to the following algorithm: diff --git a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/OAuth2IntrospectionAuthenticationProvider.java b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/OAuth2IntrospectionAuthenticationProvider.java index 36b7f8ecba..19f78ad040 100644 --- a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/OAuth2IntrospectionAuthenticationProvider.java +++ b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/OAuth2IntrospectionAuthenticationProvider.java @@ -51,7 +51,7 @@ import static org.springframework.security.oauth2.server.resource.introspection. * to check the token's validity and reveal its attributes. *

* This {@link AuthenticationProvider} is responsible for introspecting and verifying an opaque access token, - * returning its attributes set as part of the {@see Authentication} statement. + * returning its attributes set as part of the {@link Authentication} statement. *

* Scopes are translated into {@link GrantedAuthority}s according to the following algorithm: *

    diff --git a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/OAuth2IntrospectionReactiveAuthenticationManager.java b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/OAuth2IntrospectionReactiveAuthenticationManager.java index fea7607303..5b9b0f0354 100644 --- a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/OAuth2IntrospectionReactiveAuthenticationManager.java +++ b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/OAuth2IntrospectionReactiveAuthenticationManager.java @@ -52,7 +52,7 @@ import static org.springframework.security.oauth2.server.resource.introspection. * to check the token's validity and reveal its attributes. *

    * This {@link ReactiveAuthenticationManager} is responsible for introspecting and verifying an opaque access token, - * returning its attributes set as part of the {@see Authentication} statement. + * returning its attributes set as part of the {@link Authentication} statement. *

    * Scopes are translated into {@link GrantedAuthority}s according to the following algorithm: *

      diff --git a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/web/BearerTokenAuthenticationEntryPoint.java b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/web/BearerTokenAuthenticationEntryPoint.java index 03521ef3e9..e80f0710f4 100644 --- a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/web/BearerTokenAuthenticationEntryPoint.java +++ b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/web/BearerTokenAuthenticationEntryPoint.java @@ -52,7 +52,7 @@ public final class BearerTokenAuthenticationEntryPoint implements Authentication /** * Collect error details from the provided parameters and format according to - * RFC 6750, specifically {@code error}, {@code error_description}, {@code error_uri}, and {@scope scope}. + * RFC 6750, specifically {@code error}, {@code error_description}, {@code error_uri}, and {@code scope}. * * @param request that resulted in an AuthenticationException * @param response so that the user agent can begin authentication diff --git a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/web/access/BearerTokenAccessDeniedHandler.java b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/web/access/BearerTokenAccessDeniedHandler.java index 620aa64027..2ac06bdb84 100644 --- a/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/web/access/BearerTokenAccessDeniedHandler.java +++ b/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/web/access/BearerTokenAccessDeniedHandler.java @@ -49,7 +49,7 @@ public final class BearerTokenAccessDeniedHandler implements AccessDeniedHandler /** * Collect error details from the provided parameters and format according to - * RFC 6750, specifically {@code error}, {@code error_description}, {@code error_uri}, and {@scope scope}. + * RFC 6750, specifically {@code error}, {@code error_description}, {@code error_uri}, and {@code scope}. * * @param request that resulted in an AccessDeniedException * @param response so that the user agent can be advised of the failure diff --git a/web/src/main/java/org/springframework/security/web/header/writers/HstsHeaderWriter.java b/web/src/main/java/org/springframework/security/web/header/writers/HstsHeaderWriter.java index 2e8d9c2075..15c06a4543 100644 --- a/web/src/main/java/org/springframework/security/web/header/writers/HstsHeaderWriter.java +++ b/web/src/main/java/org/springframework/security/web/header/writers/HstsHeaderWriter.java @@ -238,7 +238,7 @@ public final class HstsHeaderWriter implements HeaderWriter { * * @param preload true to include preload, else false * @since 5.2.0 - * @autor Ankur Pathak + * @author Ankur Pathak */ public void setPreload(boolean preload) { this.preload = preload;