瀏覽代碼

Add Deprecated ObjectPostProcessor constructor

Issue gh-16174
Tran Ngoc Nhan 8 月之前
父節點
當前提交
8c0ea3e630

+ 13 - 0
config/src/main/java/org/springframework/security/config/annotation/authentication/builders/AuthenticationManagerBuilder.java

@@ -65,6 +65,19 @@ public class AuthenticationManagerBuilder
 
 	private AuthenticationEventPublisher eventPublisher;
 
+	/**
+	 * Creates a new instance
+	 * @param objectPostProcessor the
+	 * {@link org.springframework.security.config.annotation.ObjectPostProcessor} instance
+	 * to use.
+	 * @deprecated
+	 */
+	@Deprecated(since = "6.4", forRemoval = true)
+	public AuthenticationManagerBuilder(
+			org.springframework.security.config.annotation.ObjectPostProcessor<Object> objectPostProcessor) {
+		super(objectPostProcessor, true);
+	}
+
 	/**
 	 * Creates a new instance
 	 * @param objectPostProcessor the {@link ObjectPostProcessor} instance to use.