org.springframework.security.oauth2.common
Class OAuth2AccessTokenSerializer
java.lang.Object
org.codehaus.jackson.map.JsonSerializer<T>
org.codehaus.jackson.map.ser.std.SerializerBase<T>
org.codehaus.jackson.map.ser.SerializerBase<OAuth2AccessToken>
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 classes/interfaces inherited from class org.codehaus.jackson.map.JsonSerializer |
org.codehaus.jackson.map.JsonSerializer.None |
Fields inherited from class org.codehaus.jackson.map.ser.std.SerializerBase |
_handledType |
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 |
OAuth2AccessTokenSerializer
public OAuth2AccessTokenSerializer()
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.