I’m just getting my feet wet with Keyczar - looks like a great lib - going through the "Walkthrough and Sample Data” section the end of the "Keyczar: A Cryptographic Toolkit” PDF doc.
I’ve created an HMAC Keyset (8.1), generated an HMAC key (8.2), promoted the key (8.3) and am trying 8.5 Signing and Verifying in a java project I set up for this purpose which has the required dependences - log4j & gson.
However, initializing the Signer with the path to the keyset folder fails when trying to create a KeyMetadata object from a, seemingly valid JSON string, the KeyMetadata#read()#read() method:
KeyMetadata kmd = Util.gson().fromJson(jsonString, KeyMetadata.class);
fails further down the call stack, specifically:
SignatureParser.current() line: 95 [local variables unavailable]
with ArrayIndexOutOfBoundsException.
It's a rather simple sample... has anyone gone through it lately? Any idea what might be missing on my side?
Thanks,
Yolian