From 8c0ea3e630174abaf43c2d67d3fc7c0ac85e3486 Mon Sep 17 00:00:00 2001 From: Tran Ngoc Nhan Date: Wed, 4 Dec 2024 19:27:20 +0700 Subject: [PATCH] Add Deprecated ObjectPostProcessor constructor Issue gh-16174 --- .../builders/AuthenticationManagerBuilder.java | 13 +++++++++++++ 1 file changed, 13 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..0a734574a3 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,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 objectPostProcessor) { + super(objectPostProcessor, true); + } + /** * Creates a new instance * @param objectPostProcessor the {@link ObjectPostProcessor} instance to use.