Description

There are crypto standards that require large integers for keys to be encoded in
base64 with some special caveats (no sign bit, padding, etc). One of the
standards that requires this is the w3c's XML-Signature standard. This patch
adds this support along with junit tests. This code is taken from the Apache XML
Security project's own Base64 class and changed to be more readable and add
junit tests.

I think it would be nice to have the tests and unit tests cover some simple and edge cases: null, -1, 0, 1 as well as bogus byte arrays. A senisble error should be throws NullArgumentException, Illegal ArgumentException, etc.

ggregory@seagullsw.com
added a comment - 16/Oct/06 23:24 I think it would be nice to have the tests and unit tests cover some simple and edge cases: null, -1, 0, 1 as well as bogus byte arrays. A senisble error should be throws NullArgumentException, Illegal ArgumentException, etc.

Henri Yandell
added a comment - 05/Feb/08 05:51 Also, just noticed that we'd need to get approval from Chris to use the patch. This predates moving to JIRA, so the Attachment says 'No' under the 'Apache granted permisson' bit.