[Pki-devel] [PATCH] 104 Make the return type of the secrets returned by the KeyClient consistent on both Java and Python sides

Abhishek Koneru akoneru at redhat.com
Thu Aug 28 23:24:34 UTC 2014


Currently, the secrets retrieved using the retrieveKey method of the KeyClient are of the type byte[]. (Attribute of the Key object).
But the public key, which is returned in a KeyInfo object, is being accessible as a string (base64 encoded binary data).

This patch changes getter/setter of the publicKey attribute of the KeyInfo object to do the conversion from base64 encoded string to byte[] and vice versa.
With this patch all the keys retrieved are of the type byte[].
Please review the attached patch.

-- Abhishek

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pki-akoneru-0104-Makes-output-of-secrets-consistent-for-all-clients.patch
Type: text/x-patch
Size: 8399 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20140828/ff36d06e/attachment.bin>


More information about the Pki-devel mailing list