org.springframework.security.oauth2.common
Class OAuth2AccessTokenSerializer

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.OAuth2AccessTokenSerializer
All Implemented Interfaces:
org.codehaus.jackson.schema.SchemaAware

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

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

Author:
Rob Winch
See Also:
OAuth2AccessTokenDeserializer

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
OAuth2AccessTokenSerializer()
           
 
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

OAuth2AccessTokenSerializer

public OAuth2AccessTokenSerializer()
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 © 2012. All Rights Reserved.