|
DigiStamp.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdgs.tlkt.demo.DemoBouncyCastle
An example of using BouncyCastle software to verify a time stamp.
This code helps the DigiStamp user by providing code that was not supplied by DigiStamp to verify a time stamp. This was intended to improve the user's ability to verify authentication details.
The BouncyCastle team and their downloads are available at: the Legion Of The Bouncy Castle (http://www.bouncycastle.org). This example was tested with BouncyCastle Release 1.33. You will need Provider, SMIME/CMS, and TSP. The BouncyCastle TSP contains the extensions to support for RFC3161 time stamps. The steps are:
Prerequisites:
runDemo(String, String)| Constructor Summary | |
DemoBouncyCastle()
|
|
| Method Summary | |
static byte[] |
calculateMessageDigest(java.io.InputStream datafile)
|
static DgsComm |
getTsaLocalProxy()
The TSA local proxy is implemented with lazy initialization. |
static void |
main(java.lang.String[] args)
Execute the demo.Enter parameters input file name that will be time stamped output file name of the time stamp |
void |
runDemo(java.lang.String fileToTimestamp,
java.lang.String outFileName)
This is a demonstration of code that peforms the basic steps of a client user of the SecureTime toolkit. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DemoBouncyCastle()
| Method Detail |
public static byte[] calculateMessageDigest(java.io.InputStream datafile)
throws java.security.NoSuchAlgorithmException,
java.io.IOException
java.security.NoSuchAlgorithmException
java.io.IOException
public static DgsComm getTsaLocalProxy()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
runDemo(String, String)
public void runDemo(java.lang.String fileToTimestamp,
java.lang.String outFileName)
Prerequisites:
|
Copyright 2000-2010 DigiStamp, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||