Class SimpleGrantedAuthorityMixin
java.lang.Object
org.springframework.security.jackson2.SimpleGrantedAuthorityMixin
Deprecated, for removal: This API element is subject to removal in a future version.
Jackson Mixin class helps in serialize/deserialize
SimpleGrantedAuthority.
ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new CoreJackson2Module());
- Since:
- 4.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Mixin Constructor. -
Method Summary
-
Constructor Details
-
SimpleGrantedAuthorityMixin
Deprecated, for removal: This API element is subject to removal in a future version.Mixin Constructor.- Parameters:
role- the role
-
org.springframework.security.jackson.SimpleGrantedAuthorityMixinbased on Jackson 3