cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] [Commented] (CXF-6532) Consider implementing Json Clear Signature spec
Date Wed, 01 Feb 2017 16:37:51 GMT


Sergey Beryozkin commented on CXF-6532:

The question is, given a custom bean, like MyDocument (which may have some properties), how
to intercept the JSON serialization process, so that the signature can be calculated on the
flight and the payload be augmented with the @signature property.

If MyDocument has JAXB annotations and depends on a JAXB XML to JSON conversions then perhaps
we can register a JCS XMLStreamWriter (and XMLStreamReader on the read side) which is possible
for ex with CXF JSONProvider (Jettison based).

If Jackson allows to intercept the serialization process then perhaps it is possible to use

May be the simplest option to start, for POC, is to have CXF filters caching the stream, and
then reading it, adding or validating the signature, and then letting the request flow. 

> Consider implementing Json Clear Signature spec
> -----------------------------------------------
>                 Key: CXF-6532
>                 URL:
>             Project: CXF
>          Issue Type: New Feature
>          Components: JAX-RS Security
>            Reporter: Sergey Beryozkin
>             Fix For: 3.2.0

This message was sent by Atlassian JIRA

View raw message