[jose] ES6-compatible JSON Number Canonicalizer in Java

Anders Rundgren <anders.rundgren.net@gmail.com> Thu, 29 October 2015 21:55 UTC

Return-Path: <anders.rundgren.net@gmail.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D7E821B320C for <jose@ietfa.amsl.com>; Thu, 29 Oct 2015 14:55:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rW0bzzQvYMZy for <jose@ietfa.amsl.com>; Thu, 29 Oct 2015 14:55:16 -0700 (PDT)
Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 506191B320B for <jose@ietf.org>; Thu, 29 Oct 2015 14:55:16 -0700 (PDT)
Received: by wmeg8 with SMTP id g8so33841095wme.1 for <jose@ietf.org>; Thu, 29 Oct 2015 14:55:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=dtLVV2uVVTCU+aXJVuGFEGtN6rCsTcgAL9KWeOUoTJI=; b=VIJF72xG9QJakKsANVXh9wv/6RoXygj5K0aMHePsIo8a+qfLnXYXiAuwNthir4v59U PwJ3c8LTW86vbkwWBlUWlBLNbFeI5tdUE1K981Q6lA2g2AKIRYCe66vo+edK04NxegZ+ dUPjka2Gra0X8kJOZ3DjdZgn0W9E2K41OhmxCWN9u6Mj8WI9hcXy33grcpYGCNse0gIZ cWorsGMcb4JkfJBIXepWuM3IrcF7hwFa9XJtShFVKwWVb7aRNJ26jzPrGHIpz7WUTj6D 51qDUjVl0tpKdf67hO8ZNZRx/xeYPGJCexTYsIf7kXXRZtfbyv4zM7t0f4z8LaI0FmJd 5OPA==
X-Received: by 10.28.211.70 with SMTP id k67mr8931041wmg.38.1446155714894; Thu, 29 Oct 2015 14:55:14 -0700 (PDT)
Received: from [192.168.1.79] (148.198.130.77.rev.sfr.net. [77.130.198.148]) by smtp.googlemail.com with ESMTPSA id gl9sm3849353wjb.10.2015.10.29.14.55.13 for <jose@ietf.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Oct 2015 14:55:14 -0700 (PDT)
To: "jose@ietf.org" <jose@ietf.org>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
Message-ID: <563295BB.90906@gmail.com>
Date: Thu, 29 Oct 2015 22:55:07 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/jose/xwqC5Q0WBp_sqkdr0x8ommdJwM4>
Subject: [jose] ES6-compatible JSON Number Canonicalizer in Java
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 29 Oct 2015 21:55:18 -0000

I have only spent some 10 hours on this code so I can't guarantee that it is perfect:
https://github.com/cyberphone/openkeystore/blob/master/es6-numbers/src/com/example/es6numbers/Test.java

Result:
http://webpki.org/ietf/es6numbertest.html

Anders