Project

General

Profile

Task #3631

Task #3629: Handle CILogon DN containing UTF-7 encoded special characters

Add jutf7 library to libclient

Added by Ben Leinfelder over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ben Leinfelder
Category:
d1_libclient_java
Target version:
-
Start date:
2013-03-01
Due date:
% Done:

100%

Estimated time:
0.00 h
Milestone:
None
Product Version:
*
Story Points:
Sprint:

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).

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)