类 HerodotusUserDeserializer
java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<HerodotusUser>
cn.herodotus.engine.oauth2.core.jackson2.HerodotusUserDeserializer
- 所有已实现的接口:
com.fasterxml.jackson.databind.deser.NullValueProvider
public class HerodotusUserDeserializer
extends com.fasterxml.jackson.databind.JsonDeserializer<HerodotusUser>
Description: 自定义 UserDetails 序列化
- 作者:
- : gengwei.zheng
- Date:
- : 2022/2/17 21:01
-
嵌套类概要
从类继承的嵌套类/接口 com.fasterxml.jackson.databind.JsonDeserializer
com.fasterxml.jackson.databind.JsonDeserializer.None -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) This method will createUserobject.从类继承的方法 com.fasterxml.jackson.databind.JsonDeserializer
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
-
构造器详细资料
-
HerodotusUserDeserializer
public HerodotusUserDeserializer()
-
-
方法详细资料
-
deserialize
public HerodotusUser deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException, com.fasterxml.jackson.core.JsonProcessingException This method will createUserobject. It will ensure successful object creation even if password key is null in serialized json, because credentials may be removed from theUserby invokingUser.eraseCredentials(). In that case there won't be any password key in serialized json.- 指定者:
deserialize在类中com.fasterxml.jackson.databind.JsonDeserializer<HerodotusUser>- 参数:
jp- the JsonParserctxt- the DeserializationContext- 返回:
- the user
- 抛出:
IOException- if a exception during IO occurscom.fasterxml.jackson.core.JsonProcessingException- if an error during JSON processing occurs
-