org.springframework.security.oauth2.common
Class OAuth2AccessTokenJackson1Serializer

java.lang.Object
  extended by org.codehaus.jackson.map.JsonSerializer<T>
      extended by org.codehaus.jackson.map.ser.std.SerializerBase<T>
          extended by org.codehaus.jackson.map.ser.SerializerBase<OAuth2AccessToken>
              extended by org.springframework.security.oauth2.common.OAuth2AccessTokenJackson1Serializer
All Implemented Interfaces:
org.codehaus.jackson.schema.SchemaAware

public final class OAuth2AccessTokenJackson1Serializer
extends org.codehaus.jackson.map.ser.SerializerBase<OAuth2AccessToken>

Provides the ability to serialize an OAuth2AccessToken with jackson by implementing JsonSerializer. Refer to OAuth2AccessTokenJackson1Deserializer to learn more about the JSON format that is used.

Author:
Rob Winch
See Also:
OAuth2AccessTokenJackson1Deserializer

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.jackson.map.JsonSerializer
org.codehaus.jackson.map.JsonSerializer.None
 
Field Summary
 
Fields inherited from class org.codehaus.jackson.map.ser.std.SerializerBase
_handledType
 
Constructor Summary
OAuth2AccessTokenJackson1Serializer()
           
 
Method Summary
 void serialize(OAuth2AccessToken token, org.codehaus.jackson.JsonGenerator jgen, org.codehaus.jackson.map.SerializerProvider provider)
           
 
Methods inherited from class org.codehaus.jackson.map.ser.std.SerializerBase
createObjectNode, createSchemaNode, createSchemaNode, getSchema, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow, wrapAndThrow, wrapAndThrow
 
Methods inherited from class org.codehaus.jackson.map.JsonSerializer
isUnwrappingSerializer, serializeWithType, unwrappingSerializer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuth2AccessTokenJackson1Serializer

public OAuth2AccessTokenJackson1Serializer()
Method Detail

serialize

public void serialize(OAuth2AccessToken token,
                      org.codehaus.jackson.JsonGenerator jgen,
                      org.codehaus.jackson.map.SerializerProvider provider)
               throws IOException,
                      org.codehaus.jackson.JsonGenerationException
Specified by:
serialize in class org.codehaus.jackson.map.ser.std.SerializerBase<OAuth2AccessToken>
Throws:
IOException
org.codehaus.jackson.JsonGenerationException


Copyright © 2013. All Rights Reserved.