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 Summary
ConstructorDescriptionJsonConverter
(Class<? extends Object> clazz) Constructor for JsonConverter.JsonConverter
(Class<? extends Object> clazz, com.fasterxml.jackson.core.type.TypeReference<? extends Object> typeReference) Constructor for JsonConverter. -
Method Summary
-
Constructor Details
-
JsonConverter
Constructor for JsonConverter.
- Parameters:
clazz
- aClass
object
-
JsonConverter
public JsonConverter(Class<? extends Object> clazz, com.fasterxml.jackson.core.type.TypeReference<? extends Object> typeReference) Constructor for JsonConverter.
- Parameters:
clazz
- aClass
objecttypeReference
- aTypeReference
object
-
-
Method Details
-
convert
- Specified by:
convert
in interfaceorg.pac4j.core.profile.converter.AttributeConverter
-