public class UserDeserializer
extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<org.springframework.security.core.userdetails.User>
User class. This is already registered with
org.springframework.security.jackson2.UserMixin.
You can also use it directly with your mixin class.| 限定符和类型 | 类和说明 |
|---|---|
static interface |
UserDeserializer.UserMixin |
| 构造器和说明 |
|---|
UserDeserializer() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.core.userdetails.User |
deserialize(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt)
This method will create
User object. |
_byteOverflow, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeWrappedValue, _failDoubleToIntCoercion, _findNullProvider, _hasTextualNull, _intOverflow, _isEmptyOrTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _neitherNull, _nonNullNumber, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseIntPrimitive, _parseIntPrimitive, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, deserializeWithType, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDoubledeserialize, deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializerpublic org.springframework.security.core.userdetails.User deserialize(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt)
throws IOException,
com.fasterxml.jackson.core.JsonProcessingException
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<org.springframework.security.core.userdetails.User>jp - the JsonParserctxt - the DeserializationContextIOException - if a exception during IO occurscom.fasterxml.jackson.core.JsonProcessingException - if an error during JSON processing occursCopyright © 2021. All rights reserved.