From 5e091b94a92f6091c16f5187cdeec28a4210689e Mon Sep 17 00:00:00 2001
From: Steve Riesenberg
Date: Thu, 21 Oct 2021 10:58:06 -0500
Subject: [PATCH] Deprecate RemoteAuthentication* for 5.6
Closes gh-10430
---
.../authentication/rcp/RemoteAuthenticationException.java | 2 ++
.../authentication/rcp/RemoteAuthenticationManager.java | 2 ++
.../authentication/rcp/RemoteAuthenticationManagerImpl.java | 2 ++
.../authentication/rcp/RemoteAuthenticationProvider.java | 2 ++
.../security/authentication/rcp/package-info.java | 1 +
5 files changed, 9 insertions(+)
diff --git a/core/src/main/java/org/springframework/security/authentication/rcp/RemoteAuthenticationException.java b/core/src/main/java/org/springframework/security/authentication/rcp/RemoteAuthenticationException.java
index fdfece6ba7..001192aec1 100644
--- a/core/src/main/java/org/springframework/security/authentication/rcp/RemoteAuthenticationException.java
+++ b/core/src/main/java/org/springframework/security/authentication/rcp/RemoteAuthenticationException.java
@@ -28,7 +28,9 @@ import org.springframework.security.core.SpringSecurityCoreVersion;
* issues for the remoting protocol.
*
* @author Ben Alex
+ * @deprecated as of 5.6.0 with no replacement
*/
+@Deprecated
public class RemoteAuthenticationException extends NestedRuntimeException {
private static final long serialVersionUID = SpringSecurityCoreVersion.SERIAL_VERSION_UID;
diff --git a/core/src/main/java/org/springframework/security/authentication/rcp/RemoteAuthenticationManager.java b/core/src/main/java/org/springframework/security/authentication/rcp/RemoteAuthenticationManager.java
index f2bec46c89..a1db8acc51 100644
--- a/core/src/main/java/org/springframework/security/authentication/rcp/RemoteAuthenticationManager.java
+++ b/core/src/main/java/org/springframework/security/authentication/rcp/RemoteAuthenticationManager.java
@@ -24,7 +24,9 @@ import org.springframework.security.core.GrantedAuthority;
* Allows remote clients to attempt authentication.
*
* @author Ben Alex
+ * @deprecated as of 5.6.0 with no replacement
*/
+@Deprecated
public interface RemoteAuthenticationManager {
/**
diff --git a/core/src/main/java/org/springframework/security/authentication/rcp/RemoteAuthenticationManagerImpl.java b/core/src/main/java/org/springframework/security/authentication/rcp/RemoteAuthenticationManagerImpl.java
index 2f3063cdd3..1d32b90ee5 100644
--- a/core/src/main/java/org/springframework/security/authentication/rcp/RemoteAuthenticationManagerImpl.java
+++ b/core/src/main/java/org/springframework/security/authentication/rcp/RemoteAuthenticationManagerImpl.java
@@ -32,7 +32,9 @@ import org.springframework.util.Assert;
* configured AuthenticationManager to resolve an authentication request.
*
* @author Ben Alex
+ * @deprecated as of 5.6.0 with no replacement
*/
+@Deprecated
public class RemoteAuthenticationManagerImpl implements RemoteAuthenticationManager, InitializingBean {
private AuthenticationManager authenticationManager;
diff --git a/core/src/main/java/org/springframework/security/authentication/rcp/RemoteAuthenticationProvider.java b/core/src/main/java/org/springframework/security/authentication/rcp/RemoteAuthenticationProvider.java
index 3ed938a248..c7164a0b97 100644
--- a/core/src/main/java/org/springframework/security/authentication/rcp/RemoteAuthenticationProvider.java
+++ b/core/src/main/java/org/springframework/security/authentication/rcp/RemoteAuthenticationProvider.java
@@ -49,7 +49,9 @@ import org.springframework.util.Assert;
*
*
* @author Ben Alex
+ * @deprecated as of 5.6.0 with no replacement
*/
+@Deprecated
public class RemoteAuthenticationProvider implements AuthenticationProvider, InitializingBean {
private RemoteAuthenticationManager remoteAuthenticationManager;
diff --git a/core/src/main/java/org/springframework/security/authentication/rcp/package-info.java b/core/src/main/java/org/springframework/security/authentication/rcp/package-info.java
index b4010d186b..731e7ecd7b 100644
--- a/core/src/main/java/org/springframework/security/authentication/rcp/package-info.java
+++ b/core/src/main/java/org/springframework/security/authentication/rcp/package-info.java
@@ -17,5 +17,6 @@
/**
* Allows remote clients to authenticate and obtain a populated
* Authentication object.
+ * @deprecated as of 5.6.0 with no replacement
*/
package org.springframework.security.authentication.rcp;