org.springframework.security.oauth2.common
Class OAuth2AccessTokenJackson2Serializer

java.lang.Object
  extended by com.fasterxml.jackson.databind.JsonSerializer<T>
      extended by com.fasterxml.jackson.databind.ser.std.StdSerializer<OAuth2AccessToken>
          extended by org.springframework.security.oauth2.common.OAuth2AccessTokenJackson2Serializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.jsonschema.SchemaAware

public final class OAuth2AccessTokenJackson2Serializer
extends com.fasterxml.jackson.databind.ser.std.StdSerializer<OAuth2AccessToken>

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

Author:
Rob Winch, Brian Clozel
See Also:
OAuth2AccessTokenJackson2Deserializer

Nested Class Summary
 
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None
 
Field Summary
 
Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType
 
Constructor Summary
OAuth2AccessTokenJackson2Serializer()
           
 
Method Summary
 void serialize(OAuth2AccessToken token, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)
           
 
Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
acceptJsonFormatVisitor, createObjectNode, createSchemaNode, createSchemaNode, getSchema, getSchema, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow
 
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isUnwrappingSerializer, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuth2AccessTokenJackson2Serializer

public OAuth2AccessTokenJackson2Serializer()
Method Detail

serialize

public void serialize(OAuth2AccessToken token,
                      com.fasterxml.jackson.core.JsonGenerator jgen,
                      com.fasterxml.jackson.databind.SerializerProvider provider)
               throws IOException,
                      com.fasterxml.jackson.core.JsonGenerationException
Specified by:
serialize in class com.fasterxml.jackson.databind.ser.std.StdSerializer<OAuth2AccessToken>
Throws:
IOException
com.fasterxml.jackson.core.JsonGenerationException


Copyright © 2013. All Rights Reserved.