From 4cc12792543f2982c92c3a5ae8f50f3c85ed5894 Mon Sep 17 00:00:00 2001 From: Tran Ngoc Nhan Date: Wed, 4 Dec 2024 18:58:33 +0700 Subject: [PATCH] Add Deprecated ObjectPostProcessor constructor --- .../builders/AuthenticationManagerBuilder.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/src/main/java/org/springframework/security/config/annotation/authentication/builders/AuthenticationManagerBuilder.java b/config/src/main/java/org/springframework/security/config/annotation/authentication/builders/AuthenticationManagerBuilder.java index 8c7888dc53..c4104202dc 100644 --- a/config/src/main/java/org/springframework/security/config/annotation/authentication/builders/AuthenticationManagerBuilder.java +++ b/config/src/main/java/org/springframework/security/config/annotation/authentication/builders/AuthenticationManagerBuilder.java @@ -65,6 +65,18 @@ public class AuthenticationManagerBuilder private AuthenticationEventPublisher eventPublisher; + /** + * Creates a new instance + * @param objectPostProcessor the + * {@link org.springframework.security.config.annotation.ObjectPostProcessor} instance + * to use. + */ + @Deprecated(since = "6.4", forRemoval = true) + public AuthenticationManagerBuilder( + org.springframework.security.config.annotation.ObjectPostProcessor objectPostProcessor) { + super(objectPostProcessor, true); + } + /** * Creates a new instance * @param objectPostProcessor the {@link ObjectPostProcessor} instance to use.