Skip to content

Commit 197ee38

Browse files
committed
Mark deprecated response clients for removal
Issue gh-16913
1 parent 9ca0208 commit 197ee38

10 files changed

+20
-20
lines changed

oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/DefaultAuthorizationCodeTokenResponseClient.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -54,7 +54,7 @@
5454
* (Authorization Code Grant)</a>
5555
* @deprecated Use {@link RestClientAuthorizationCodeTokenResponseClient} instead
5656
*/
57-
@Deprecated(since = "6.4")
57+
@Deprecated(since = "6.4", forRemoval = true)
5858
public final class DefaultAuthorizationCodeTokenResponseClient
5959
implements OAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest> {
6060

oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/DefaultClientCredentialsTokenResponseClient.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -54,7 +54,7 @@
5454
* (Client Credentials Grant)</a>
5555
* @deprecated Use {@link RestClientClientCredentialsTokenResponseClient} instead
5656
*/
57-
@Deprecated(since = "6.4")
57+
@Deprecated(since = "6.4", forRemoval = true)
5858
public final class DefaultClientCredentialsTokenResponseClient
5959
implements OAuth2AccessTokenResponseClient<OAuth2ClientCredentialsGrantRequest> {
6060

oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/DefaultJwtBearerTokenResponseClient.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -52,7 +52,7 @@
5252
* 4.1 Using Assertions as Authorization Grants</a>
5353
* @deprecated Use {@link RestClientJwtBearerTokenResponseClient} instead
5454
*/
55-
@Deprecated(since = "6.4")
55+
@Deprecated(since = "6.4", forRemoval = true)
5656
public final class DefaultJwtBearerTokenResponseClient
5757
implements OAuth2AccessTokenResponseClient<JwtBearerGrantRequest> {
5858

oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/DefaultRefreshTokenTokenResponseClient.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -51,7 +51,7 @@
5151
* Refreshing an Access Token</a>
5252
* @deprecated Use {@link RestClientRefreshTokenTokenResponseClient} instead
5353
*/
54-
@Deprecated(since = "6.4")
54+
@Deprecated(since = "6.4", forRemoval = true)
5555
public final class DefaultRefreshTokenTokenResponseClient
5656
implements OAuth2AccessTokenResponseClient<OAuth2RefreshTokenGrantRequest> {
5757

oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/DefaultTokenExchangeTokenResponseClient.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -52,7 +52,7 @@
5252
* 2.2 Response</a>
5353
* @deprecated Use {@link RestClientRefreshTokenTokenResponseClient} instead
5454
*/
55-
@Deprecated(since = "6.4")
55+
@Deprecated(since = "6.4", forRemoval = true)
5656
public final class DefaultTokenExchangeTokenResponseClient
5757
implements OAuth2AccessTokenResponseClient<TokenExchangeGrantRequest> {
5858

oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/JwtBearerGrantRequestEntityConverter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -39,7 +39,7 @@
3939
* 2.1 Using JWTs as Authorization Grants</a>
4040
* @deprecated Use {@link DefaultOAuth2TokenRequestParametersConverter} instead
4141
*/
42-
@Deprecated(since = "6.4")
42+
@Deprecated(since = "6.4", forRemoval = true)
4343
public class JwtBearerGrantRequestEntityConverter
4444
extends AbstractOAuth2AuthorizationGrantRequestEntityConverter<JwtBearerGrantRequest> {
4545

oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/OAuth2AuthorizationCodeGrantRequestEntityConverter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,7 +38,7 @@
3838
* @see RequestEntity
3939
* @deprecated Use {@link DefaultOAuth2TokenRequestParametersConverter} instead
4040
*/
41-
@Deprecated(since = "6.4")
41+
@Deprecated(since = "6.4", forRemoval = true)
4242
public class OAuth2AuthorizationCodeGrantRequestEntityConverter
4343
extends AbstractOAuth2AuthorizationGrantRequestEntityConverter<OAuth2AuthorizationCodeGrantRequest> {
4444

oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/OAuth2ClientCredentialsGrantRequestEntityConverter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,7 +38,7 @@
3838
* @see RequestEntity
3939
* @deprecated Use {@link DefaultOAuth2TokenRequestParametersConverter} instead
4040
*/
41-
@Deprecated(since = "6.4")
41+
@Deprecated(since = "6.4", forRemoval = true)
4242
public class OAuth2ClientCredentialsGrantRequestEntityConverter
4343
extends AbstractOAuth2AuthorizationGrantRequestEntityConverter<OAuth2ClientCredentialsGrantRequest> {
4444

oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/OAuth2RefreshTokenGrantRequestEntityConverter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,7 +38,7 @@
3838
* @see RequestEntity
3939
* @deprecated Use {@link DefaultOAuth2TokenRequestParametersConverter} instead
4040
*/
41-
@Deprecated(since = "6.4")
41+
@Deprecated(since = "6.4", forRemoval = true)
4242
public class OAuth2RefreshTokenGrantRequestEntityConverter
4343
extends AbstractOAuth2AuthorizationGrantRequestEntityConverter<OAuth2RefreshTokenGrantRequest> {
4444

oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/endpoint/TokenExchangeGrantRequestEntityConverter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -41,7 +41,7 @@
4141
* 1.1 Delegation vs. Impersonation Semantics</a>
4242
* @deprecated Use {@link DefaultOAuth2TokenRequestParametersConverter} instead
4343
*/
44-
@Deprecated(since = "6.4")
44+
@Deprecated(since = "6.4", forRemoval = true)
4545
public class TokenExchangeGrantRequestEntityConverter
4646
extends AbstractOAuth2AuthorizationGrantRequestEntityConverter<TokenExchangeGrantRequest> {
4747

0 commit comments

Comments
 (0)