[9] Request for Review: 8046724: XML Signature ECKeyValue elements cannot be marshalled or unmarshalled

Sean Mullan sean.mullan at oracle.com
Thu Dec 18 15:02:03 UTC 2014


Just a few comments:

- some of the methods (encodePoint, trimZeroes, ...) can be made private 
static.

451: if getCurveOid returns null, you should throw MarshalException 
instead of outputting a null Oid

486: if getECParameterSpec returns null, you should throw 
MarshalException (otherwise an NPE would be thrown on line 498)

520,524: these methods should be private

--Sean

On 12/16/2014 02:44 PM, Jason Uh wrote:
> Please review this fix, which allows XML Signature ECKeyValue elements
> to be marshalled and unmarshalled.
>
> Dependence on internal sun.security.* classes has been removed, so that
> the (un)marshalling can happen without reflection.
>
> webrev: http://cr.openjdk.java.net/~juh/8046724/00/
> bug: https://bugs.openjdk.java.net/browse/JDK-8046724
>
> A corresponding test will be added to the closed repository.
>
> Thanks,
> Jason


More information about the security-dev mailing list