Class JsonConverter

java.lang.Object
org.pac4j.oauth.profile.converter.JsonConverter
All Implemented Interfaces:
org.pac4j.core.profile.converter.AttributeConverter

public final class JsonConverter extends Object implements org.pac4j.core.profile.converter.AttributeConverter
This class converts a JSON node (or string) into an object.
Since:
1.9.0
Author:
Jerome Leleu
  • Constructor Details

    • JsonConverter

      public JsonConverter(Class<? extends Object> clazz)
    • JsonConverter

      public JsonConverter(Class<? extends Object> clazz, com.fasterxml.jackson.core.type.TypeReference<? extends Object> typeReference)
  • Method Details

    • convert

      public Object convert(Object attribute)
      Specified by:
      convert in interface org.pac4j.core.profile.converter.AttributeConverter