[JIRA] Updated: (JXT-8) Decryption of EncryptedData that contains something other than a single DOM Element

Scott Cantor (JIRA) noreply at shibboleth.net
Wed Oct 24 14:27:07 EDT 2012


     [ https://issues.shibboleth.net/jira/browse/JXT-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Cantor updated JXT-8:
---------------------------

    Fix Version/s: 1.4.0
         Assignee: Brent Putman  (was: Brent Putman)

Suggest revisiting this just to determine if anything's changed.

> Decryption of EncryptedData that contains something other than a single DOM Element
> -----------------------------------------------------------------------------------
>
>                 Key: JXT-8
>                 URL: https://issues.shibboleth.net/jira/browse/JXT-8
>             Project: XMLTooling - Java
>          Issue Type: Improvement
>          Components: Encryption
>            Reporter: Brent Putman
>            Assignee: Brent Putman
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> Apache XML Security currently only provides a "detached" XMLCipher decryption method that returns a byte[]. The Decrypter must handle parsing this into a DocumentFragment. Currently we only handle parsing this if it is a proper XML document instance that can be parsed with a DocumentBuilder from our ParserPool.
> One possible option is to use DOM Level 3 LSParser#parseWithContext. There is (commented out) code in the Decrypter to do this. Unfortunately the current Xerces implementation of LSParser does not yet support this method.
> Some possible options are:
> 1) wait on Xerces support in LSParser
> 2) request an enhancement to Apache XML Security for an XMLCipher method which returns a DocumentFragment. The C++ version of XML Security does already do this.
> 3) implement our own method of parsing and returning a fragment by, for example, wraping the returned byte[] data in a dummy element (opening and closing tags) so can be parsed by a DocumentBuilder. There may be thorny issues here with encoding, character sets, etc. The Apache C++ library apparently does something similar.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the commits mailing list