org.springframework.security.oauth2.common
Class OAuth2AccessTokenDeserializer

java.lang.Object
  extended by org.codehaus.jackson.map.JsonDeserializer<T>
      extended by org.codehaus.jackson.map.deser.std.StdDeserializer<T>
          extended by org.codehaus.jackson.map.deser.StdDeserializer<OAuth2AccessToken>
              extended by org.springframework.security.oauth2.common.OAuth2AccessTokenDeserializer

public final class OAuth2AccessTokenDeserializer
extends org.codehaus.jackson.map.deser.StdDeserializer<OAuth2AccessToken>

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

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

Author:
Rob Winch
See Also:
OAuth2AccessTokenDeserializer

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.jackson.map.deser.StdDeserializer
org.codehaus.jackson.map.deser.StdDeserializer.CalendarDeserializer, org.codehaus.jackson.map.deser.StdDeserializer.ClassDeserializer, org.codehaus.jackson.map.deser.StdDeserializer.StringDeserializer
 
Nested classes/interfaces inherited from class org.codehaus.jackson.map.deser.std.StdDeserializer
org.codehaus.jackson.map.deser.std.StdDeserializer.BigDecimalDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.BigIntegerDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.BooleanDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.ByteDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.CharacterDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.DoubleDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.FloatDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.IntegerDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.LongDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.NumberDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.PrimitiveOrWrapperDeserializer<T>, org.codehaus.jackson.map.deser.std.StdDeserializer.ShortDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.SqlDateDeserializer, org.codehaus.jackson.map.deser.std.StdDeserializer.StackTraceElementDeserializer
 
Nested classes/interfaces inherited from class org.codehaus.jackson.map.JsonDeserializer
org.codehaus.jackson.map.JsonDeserializer.None
 
Field Summary
 
Fields inherited from class org.codehaus.jackson.map.deser.std.StdDeserializer
_valueClass
 
Constructor Summary
OAuth2AccessTokenDeserializer()
           
 
Method Summary
 OAuth2AccessToken deserialize(org.codehaus.jackson.JsonParser jp, org.codehaus.jackson.map.DeserializationContext ctxt)
           
 
Methods inherited from class org.codehaus.jackson.map.deser.std.StdDeserializer
_parseBoolean, _parseBooleanPrimitive, _parseByte, _parseDate, _parseDouble, _parseDoublePrimitive, _parseFloat, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseShort, _parseShortPrimitive, deserializeWithType, findDeserializer, getValueClass, getValueType, handleUnknownProperty, isDefaultSerializer, parseDouble, reportUnknownProperty
 
Methods inherited from class org.codehaus.jackson.map.JsonDeserializer
deserialize, getEmptyValue, getNullValue, unwrappingDeserializer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuth2AccessTokenDeserializer

public OAuth2AccessTokenDeserializer()
Method Detail

deserialize

public OAuth2AccessToken deserialize(org.codehaus.jackson.JsonParser jp,
                                     org.codehaus.jackson.map.DeserializationContext ctxt)
                              throws IOException,
                                     org.codehaus.jackson.JsonProcessingException
Specified by:
deserialize in class org.codehaus.jackson.map.JsonDeserializer<OAuth2AccessToken>
Throws:
IOException
org.codehaus.jackson.JsonProcessingException


Copyright © 2012. All Rights Reserved.