Class SimpleGrantedAuthorityMixin

java.lang.Object
org.springframework.security.jackson2.SimpleGrantedAuthorityMixin

@Deprecated(forRemoval=true) public abstract class SimpleGrantedAuthorityMixin extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
as of 7.0 in favor of org.springframework.security.jackson.SimpleGrantedAuthorityMixin based on Jackson 3
Jackson Mixin class helps in serialize/deserialize SimpleGrantedAuthority.
     ObjectMapper mapper = new ObjectMapper();
     mapper.registerModule(new CoreJackson2Module());
 
Since:
4.2
See Also:
  • Constructor Details

    • SimpleGrantedAuthorityMixin

      public SimpleGrantedAuthorityMixin(String role)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Mixin Constructor.
      Parameters:
      role - the role