Class SimpleGrantedAuthorityMixin

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

public abstract class SimpleGrantedAuthorityMixin extends Object
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)
      Mixin Constructor.
      Parameters:
      role - the role