Class AuthorizationJsonMapperFactory
java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.clients.AuthorizationJsonMapperFactory
Creates the JSON mapper that serializes the attributes and token claims stored with each authorization.
It is the framework's own mapper with Long added to the allowed types, because claims such as
auth_time are numeric dates that the polymorphic type validator would otherwise reject when an
authorization is read back. Every AuthorizationJacksonModuleContributor bean adds its module too.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<AuthorizationJacksonModuleContributor> Contributors of the modules the framework's security modules do not include. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontools.jackson.databind.json.JsonMappercreate()Creates the mapper.
-
Field Details
-
contributors
Contributors of the modules the framework's security modules do not include.
-
-
Constructor Details
-
AuthorizationJsonMapperFactory
public AuthorizationJsonMapperFactory()
-
-
Method Details
-
create
public tools.jackson.databind.json.JsonMapper create()Creates the mapper. The contributed modules are created first, so each has configured the type validator before the framework's modules are created with it.- Returns:
- a mapper with the framework's security modules and the contributed ones, and
Longallowed.
-