Deprecate Jackson 2 support
This commit does not cover webauthn which is a special case (uses jackson sub-package for Jackson 2 support) which will be handled in a distinct commit. See gh-17832 Signed-off-by: Sébastien Deleuze <sdeleuze@users.noreply.github.com>
This commit is contained in:
committed by
Rob Winch
parent
65a14d6c6d
commit
48854c3ac9
@@ -29,7 +29,11 @@ import org.springframework.security.ldap.userdetails.InetOrgPerson;
|
||||
* @since 5.7
|
||||
* @see LdapJackson2Module
|
||||
* @see SecurityJackson2Modules
|
||||
* @deprecated as of 7.0 in favor of
|
||||
* {@code org.springframework.security.ldap.jackson.InetOrgPersonMixin} based on Jackson 3
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(forRemoval = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS)
|
||||
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE,
|
||||
isGetterVisibility = JsonAutoDetect.Visibility.NONE)
|
||||
|
||||
@@ -34,7 +34,11 @@ import org.springframework.security.ldap.userdetails.LdapAuthority;
|
||||
* @since 5.7
|
||||
* @see LdapJackson2Module
|
||||
* @see SecurityJackson2Modules
|
||||
* @deprecated as of 7.0 in favor of
|
||||
* {@code org.springframework.security.ldap.jackson.LdapAuthorityMixin} based on Jackson 3
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(forRemoval = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS)
|
||||
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE)
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
|
||||
+4
-1
@@ -45,8 +45,11 @@ import org.springframework.security.ldap.userdetails.Person;
|
||||
*
|
||||
* @since 5.7
|
||||
* @see SecurityJackson2Modules
|
||||
* @deprecated as of 7.0 in favor of
|
||||
* {@link org.springframework.security.ldap.jackson.LdapJacksonModule} based on Jackson 3
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
@Deprecated(forRemoval = true)
|
||||
@SuppressWarnings({ "serial", "removal" })
|
||||
public class LdapJackson2Module extends SimpleModule {
|
||||
|
||||
public LdapJackson2Module() {
|
||||
|
||||
+5
@@ -29,7 +29,12 @@ import org.springframework.security.ldap.userdetails.LdapUserDetailsImpl;
|
||||
* @since 5.7
|
||||
* @see LdapJackson2Module
|
||||
* @see SecurityJackson2Modules
|
||||
* @deprecated as of 7.0 in favor of
|
||||
* {@code org.springframework.security.ldap.jackson.LdapUserDetailsImplMixin} based on
|
||||
* Jackson 3
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(forRemoval = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS)
|
||||
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE,
|
||||
isGetterVisibility = JsonAutoDetect.Visibility.NONE)
|
||||
|
||||
@@ -29,7 +29,11 @@ import org.springframework.security.ldap.userdetails.Person;
|
||||
* @since 5.7
|
||||
* @see LdapJackson2Module
|
||||
* @see SecurityJackson2Modules
|
||||
* @deprecated as of 7.0 in favor of
|
||||
* {@code org.springframework.security.ldap.jackson.PersonMixin} based on Jackson 3
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(forRemoval = true)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS)
|
||||
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE,
|
||||
isGetterVisibility = JsonAutoDetect.Visibility.NONE)
|
||||
|
||||
+1
@@ -36,6 +36,7 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
/**
|
||||
* Tests for {@link InetOrgPersonMixin}.
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
public class InetOrgPersonMixinTests {
|
||||
|
||||
private static final String USER_PASSWORD = "Password1234";
|
||||
|
||||
+1
@@ -36,6 +36,7 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
/**
|
||||
* Tests for {@link LdapUserDetailsImplMixin}.
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
public class LdapUserDetailsImplMixinTests {
|
||||
|
||||
private static final String USER_PASSWORD = "Password1234";
|
||||
|
||||
@@ -36,6 +36,7 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
|
||||
/**
|
||||
* Tests for {@link PersonMixin}.
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
public class PersonMixinTests {
|
||||
|
||||
private static final String USER_PASSWORD = "Password1234";
|
||||
|
||||
Reference in New Issue
Block a user