类 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 create User object.

    从类继承的方法 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

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • 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 create User object. It will ensure successful object creation even if password key is null in serialized json, because credentials may be removed from the User by invoking User.eraseCredentials(). In that case there won't be any password key in serialized json.
      指定者:
      deserialize 在类中 com.fasterxml.jackson.databind.JsonDeserializer<HerodotusUser>
      参数:
      jp - the JsonParser
      ctxt - the DeserializationContext
      返回:
      the user
      抛出:
      IOException - if a exception during IO occurs
      com.fasterxml.jackson.core.JsonProcessingException - if an error during JSON processing occurs