Class OAuth2AuthorizationServerJacksonModule

java.lang.Object
tools.jackson.databind.JacksonModule
tools.jackson.databind.module.SimpleModule
org.springframework.security.jackson.SecurityJacksonModule
org.springframework.security.jackson.CoreJacksonModule
org.springframework.security.oauth2.server.authorization.jackson.OAuth2AuthorizationServerJacksonModule
All Implemented Interfaces:
Serializable, tools.jackson.core.Versioned

public class OAuth2AuthorizationServerJacksonModule extends CoreJacksonModule
Jackson Module for spring-security-oauth2-authorization-server, that registers the following mix-in annotations:
  • OAuth2TokenExchangeActor
  • OAuth2AuthorizationRequestMixin
  • OAuth2TokenExchangeCompositeAuthenticationTokenMixin
  • JwsAlgorithmMixin
  • OAuth2TokenFormatMixin
If not already enabled, default typing will be automatically enabled as type info is required to properly serialize/deserialize objects. In order to use this module just add it to your JsonMapper.Builder configuration.
     JsonMapper mapper = JsonMapper.builder()
             .addModules(new OAuth2AuthorizationServerJacksonModule()).build;
 
Since:
7.0
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class tools.jackson.databind.JacksonModule

    tools.jackson.databind.JacksonModule.SetupContext
  • Field Summary

    Fields inherited from class tools.jackson.databind.module.SimpleModule

    _abstractTypes, _defaultNullKeySerializer, _defaultNullValueSerializer, _deserializerModifier, _deserializers, _id, _keyDeserializers, _keySerializers, _mixins, _name, _namingStrategy, _serializerModifier, _serializers, _subtypes, _valueInstantiators, _version
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configurePolymorphicTypeValidator(tools.jackson.databind.jsontype.BasicPolymorphicTypeValidator.Builder builder)
     
    void
    setupModule(tools.jackson.databind.JacksonModule.SetupContext context)
     

    Methods inherited from class tools.jackson.databind.module.SimpleModule

    _checkNotNull, addAbstractTypeMapping, addDeserializer, addKeyDeserializer, addKeySerializer, addSerializer, addSerializer, addValueInstantiator, getModuleName, getRegistrationId, registerSubtypes, registerSubtypes, registerSubtypes, setAbstractTypes, setDefaultNullKeySerializer, setDefaultNullValueSerializer, setDeserializerModifier, setDeserializers, setKeyDeserializers, setKeySerializers, setMixInAnnotation, setNamingStrategy, setSerializerModifier, setSerializers, setValueInstantiators, version

    Methods inherited from class tools.jackson.databind.JacksonModule

    getDependencies

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OAuth2AuthorizationServerJacksonModule

      public OAuth2AuthorizationServerJacksonModule()
  • Method Details