2222
2323import org .springframework .security .jackson2 .SecurityJackson2Modules ;
2424import org .springframework .security .web .authentication .WebAuthenticationDetails ;
25- import org .springframework .security .web .authentication .switchuser .SwitchUserGrantedAuthority ;
2625import org .springframework .security .web .savedrequest .DefaultSavedRequest ;
2726import org .springframework .security .web .savedrequest .SavedCookie ;
2827
2928/**
3029 * Jackson module for spring-security-web related to servlet. This module registers
31- * {@link CookieMixin}, {@link SavedCookieMixin}, {@link DefaultSavedRequestMixin},
32- * {@link WebAuthenticationDetailsMixin}, and {@link SwitchUserGrantedAuthorityMixIn}. If
33- * no default typing is enabled by default then it will be enabled, because typing info is
34- * needed to properly serialize/deserialize objects. In order to use this module just add
35- * this module into your ObjectMapper configuration.
30+ * {@link CookieMixin}, {@link SavedCookieMixin}, {@link DefaultSavedRequestMixin}, and
31+ * {@link WebAuthenticationDetailsMixin}. If no default typing is enabled by default then
32+ * it will be enabled, because typing info is needed to properly serialize/deserialize
33+ * objects. In order to use this module just add this module into your ObjectMapper
34+ * configuration.
3635 *
3736 * <pre>
3837 * ObjectMapper mapper = new ObjectMapper();
@@ -58,7 +57,6 @@ public void setupModule(SetupContext context) {
5857 context .setMixInAnnotations (SavedCookie .class , SavedCookieMixin .class );
5958 context .setMixInAnnotations (DefaultSavedRequest .class , DefaultSavedRequestMixin .class );
6059 context .setMixInAnnotations (WebAuthenticationDetails .class , WebAuthenticationDetailsMixin .class );
61- context .setMixInAnnotations (SwitchUserGrantedAuthority .class , SwitchUserGrantedAuthorityMixIn .class );
6260 }
6361
6462}
0 commit comments