org.springframework.security.oauth2.common
Class OAuth2AccessTokenJackson2Deserializer

java.lang.Object
  extended by com.fasterxml.jackson.databind.JsonDeserializer<T>
      extended by com.fasterxml.jackson.databind.deser.std.StdDeserializer<OAuth2AccessToken>
          extended by org.springframework.security.oauth2.common.OAuth2AccessTokenJackson2Deserializer
All Implemented Interfaces:
Serializable

public final class OAuth2AccessTokenJackson2Deserializer
extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<OAuth2AccessToken>

Provides the ability to deserialize JSON response into an OAuth2AccessToken with jackson2 by implementing JsonDeserializer.

The expected format of the access token is defined by Successful Response.

Author:
Rob Winch, Brian Clozel
See Also:
OAuth2AccessTokenJackson2Serializer, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
com.fasterxml.jackson.databind.JsonDeserializer.None
 
Field Summary
 
Fields inherited from class com.fasterxml.jackson.databind.deser.std.StdDeserializer
_valueClass
 
Constructor Summary
OAuth2AccessTokenJackson2Deserializer()
           
 
Method Summary
 OAuth2AccessToken deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt)
           
 
Methods inherited from class com.fasterxml.jackson.databind.deser.std.StdDeserializer
_parseBoolean, _parseBooleanFromNumber, _parseBooleanPrimitive, _parseByte, _parseDate, _parseDouble, _parseDoublePrimitive, _parseFloat, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseShort, _parseShortPrimitive, _parseString, deserializeWithType, findDeserializer, getValueClass, getValueType, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble
 
Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, getDelegatee, getEmptyValue, getKnownPropertyNames, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, unwrappingDeserializer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuth2AccessTokenJackson2Deserializer

public OAuth2AccessTokenJackson2Deserializer()
Method Detail

deserialize

public OAuth2AccessToken deserialize(com.fasterxml.jackson.core.JsonParser jp,
                                     com.fasterxml.jackson.databind.DeserializationContext ctxt)
                              throws IOException,
                                     com.fasterxml.jackson.core.JsonProcessingException
Specified by:
deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<OAuth2AccessToken>
Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException


Copyright © 2013. All Rights Reserved.