Danny20v / eid-applet

Automatically exported from code.google.com/p/eid-applet
Other
0 stars 0 forks source link

Date encoding #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

In the identity data, why do you encode the birth date in plain
text? Why not the same date encoding for all dates?

What is the expected output? What do you see instead?

Would be nice to have the same encoding for validity date and birth date.
But if there is a change, say it loud and clear as it will break compatibility.

Original issue reported on code.google.com by sbuyss...@gmail.com on 11 Sep 2009 at 2:20

GoogleCodeExporter commented 9 years ago
I don't really understand your question. If you check out:
http://code.google.com/p/eid-applet/source/browse/trunk/eid-applet-service/src/m
ain/java/be/fedict/eid/applet/service/Identity.java#89

you'll notice that the dateOfBirth field is of type GregorianCalendar, the same 
as
for the cardValidityDateBegin and cardValidityDateEnd fields. Of course the 
validity
fields are differently encoded than the dateOfBirth field inside the identity 
file of
the eID card itself. But that's just the way it is. There are plans to change 
the
encoding of dates for future eID card so we could limit the @ConvertData data
conversion to a single DateDataConvertor.

Original comment by frank.co...@gmail.com on 12 Sep 2009 at 7:07

GoogleCodeExporter commented 9 years ago
Would just have been nice to keep the encoding problem on the applet side and 
forget
about this issue in the server side, solve it once for every implementation.

Original comment by sbuyss...@gmail.com on 14 Sep 2009 at 3:42