Enhance toString() to return structured info, for certificate and probably more

2011-08-24 Thread Weijun Wang
Hi All I was talking with Xuelei on how to better display certificate info. There are 3 cases we can currently think of: 1. debug output 2. keytool/jarsigner output 3. Java plugin display The 1st one is the most primitive one and can be a single string, the 2nd is also a string but have some

Re: Enhance toString() to return structured info, for certificate and probably more

2011-08-25 Thread Dr Andrew John Hughes
On 10:41 Thu 25 Aug , Weijun Wang wrote: > Hi All > > I was talking with Xuelei on how to better display certificate info. > There are 3 cases we can currently think of: > > 1. debug output > 2. keytool/jarsigner output > 3. Java plugin display > > The 1st one is the most primitive one and

Re: Enhance toString() to return structured info, for certificate and probably more

2011-08-25 Thread Mike Duigou
On Aug 25 2011, at 14:01 , Dr Andrew John Hughes wrote: > On 10:41 Thu 25 Aug , Weijun Wang wrote: >> Hi All >> >> I was talking with Xuelei on how to better display certificate info. >> There are 3 cases we can currently think of: >> >> 1. debug output >> 2. keytool/jarsigner output >> 3.

Re: Enhance toString() to return structured info, for certificate and probably more

2011-08-25 Thread Weijun Wang
Well, I mentioned toString() there just to make it look absurd so that I can promote my alternative method. :) As for the toDescription() method, do you know if there are other cases it can be useful? Thanks Max On 08/26/2011 10:03 AM, Mike Duigou wrote: On Aug 25 2011, at 14:01 , Dr Andr

Re: Enhance toString() to return structured info, for certificate and probably more

2011-08-26 Thread Florian Weimer
* Weijun Wang: > What's your ideas? Do you also need such a method? I suspect that many applications which need to look at certificates in detail would benefit more from an official ASN.1 decoder. Defining yet another data model for X.509 certificates (after ASN.1 and the current Java API) seems

Re: Enhance toString() to return structured info, for certificate and probably more

2011-09-15 Thread Dennis Gu
Hi Max: In Java plugin, we display the detail information of certificate in both Java Control panel and certificate dialog box from security warning, we also extract entension from certificate to make sure they are valid to use. Currently we are parsing the X509Certificate object to extract a