Task #3631
Task #3629: Handle CILogon DN containing UTF-7 encoded special characters
Add jutf7 library to libclient
100%
Description
In order to support these encoded DNs in all our applications, we need this very low down. I put it in libclient where all the certificate-handling code also lives.
History
#1 Updated by Ben Leinfelder over 11 years ago
- Estimated time set to 0.00
For more information about the library, see: http://jutf7.sourceforge.net/
#2 Updated by Ben Leinfelder over 11 years ago
There is now a CertificateManager.decodeDN() method. This is used by default when using the CertificateManager.getSubjectDN() on a certificate, but it is NOT used in the standardizeDN() method so as to avoid double-decoding that would result in garbled characters. Long story short: use the decode method only if you are certain there are characters in need of utf7 decoding or if you are certain there are no special characters to begin with. CertificateManager.getSubjectDN() is the preferred method for extracting the UTF-8 representation of the DN (so that it looks like the characters a native speaker would expect to see).