22
22
23
23
import org .springframework .security .jackson2 .SecurityJackson2Modules ;
24
24
import org .springframework .security .web .authentication .WebAuthenticationDetails ;
25
- import org .springframework .security .web .authentication .switchuser .SwitchUserGrantedAuthority ;
26
25
import org .springframework .security .web .savedrequest .DefaultSavedRequest ;
27
26
import org .springframework .security .web .savedrequest .SavedCookie ;
28
27
29
28
/**
30
29
* 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.
36
35
*
37
36
* <pre>
38
37
* ObjectMapper mapper = new ObjectMapper();
@@ -58,7 +57,6 @@ public void setupModule(SetupContext context) {
58
57
context .setMixInAnnotations (SavedCookie .class , SavedCookieMixin .class );
59
58
context .setMixInAnnotations (DefaultSavedRequest .class , DefaultSavedRequestMixin .class );
60
59
context .setMixInAnnotations (WebAuthenticationDetails .class , WebAuthenticationDetailsMixin .class );
61
- context .setMixInAnnotations (SwitchUserGrantedAuthority .class , SwitchUserGrantedAuthorityMixIn .class );
62
60
}
63
61
64
62
}
0 commit comments