timestamp : Java Glossary

The CurrCon Java Applet displays prices on this web page converted with today’s exchange rates into your local international currency, e.g. Euros, US dollars, Canadian dollars, British Pounds, Indian Rupees… CurrCon requires an up-to-date browser and Java version 1.5 or later, preferably 1.7.0_02. If you can’t see the prices in your local currency, Troubleshoot
timestamping
In general, timestamping is just marking something with a date and time. You can do that easily in Java with java.lang.System.currentTimeMillis(). Such timestamps can easily be forged. If you wanted to timestamp a jar proving that its contents existed at such as such a time, you would create a digest of the jar (e.g. by signing it) then send the digest to a signing authority who would add a timestamp to it and digitally sign it with their private key and return it to you to prove the jar existed in that state at the timestamped time.

Java jarsigner.exe has a feature to make such a request right while signing to get an accurate timestamp. You use the -tsa url or -tsacert alias to to connect to a timestamp service.

You could do something similar with a backup CD (Compact Disk) to prove you had composed all those works by the backup date, which might come in handy later in a patent or copyright lawsuit.

You send the Certificate Authority a *.tsq file, mime type application/timestamp-query, and get back a *.tsr file application/timestamp-reply. The protocol could not be simpler. You send a file using standard HTTP (Hypertext Transfer Protocol). You get a file. The DER-base64 formats of the files are defined by RFC 3161 which is part of X.509. As usual the RFC (Request For Comment) is written in Greek. I suggest snooping on a timestamping conversation with a protocol sniffer to understand better how it works. RFC 3161 covers timestamping signatures.RFC 5126 covers long term electronic signatures.

Currently, J2SE (Java 2 platform, Standard Edition) 5.0+ time stamping does not work with the Verisign time stamping authority. Jarsigner communicates with the time stamping authority through a time stamping protocol (RFC 3161) which Verisign currently does not support. Unfortunately, there is no timestamping for Sun Java code signing certificates. Therefore, you must re-sign your code after the expiration of the certificate.

Starfield has a jarsigner-compliant and RFC 3161-compliant free timestamp server. You can read about it at GoDaddy. You may need to install the Starfield root certificate first. It also works with acrobat.

Aloha also has a timestamp server Aloha free timestamp server. You will need to install the Aloha root certificate first.

Timestamping Certificate Authorities
Authority Cost in
CurrCon Applet needs Java 1.5 or later to display prices in your local currency.
CurrCon Applet needs Java 1.5 or later to display prices in your local currency.
Unizeto Certum free to individuals and educational organisations. €0.06 EUR per stamp to companies.
Digistamp $0.50 USD per stamp.
Stamper PGP (Pretty Good Privacy) based email timestamping. Also used to prove that you sent an email.
Comodo For authenticode. free.
Oracle’s Technote Guide on Java timestamping : available:


CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/timestamp.html J:\mindprod\jgloss\timestamp.html
logofeedback Please email your feedback for publication, letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email If you want your message kept confidential, not considered for posting, please explicitly specify that.
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.179.210]
You are visitor number 28,619.