public class CreateTimestamp
extends Object
Edit the file com.digistamp.properties
to input your DigiStamp
Account number and password before running this demo program. You may have an
account in DigiStamp test environment and one in Production. The contents of
com.digistamp.properties
determines if the Test or Production
TSA nodes are called to create the timestamp.
This source code is include with the SecureTime Java API distribution.
Given a file name, the process performs:
Modifier and Type | Field and Description |
---|---|
String |
alternatePassword |
String |
alternateUserID |
TSAservice |
theTSAservice
you can use as singleton because this is thread safe.
|
Constructor and Description |
---|
CreateTimestamp() |
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.tsp.TimeStampToken |
getTimeStamp(InputStream toBeTimeStamped,
String filename)
A demonstration of time stamp the content of a file.
|
static void |
main(String[] args)
Execute the demo from a command line.
|
void |
testConfigurationAlternatives() |
public String alternatePassword
public String alternateUserID
public TSAservice theTSAservice
public org.bouncycastle.tsp.TimeStampToken getTimeStamp(InputStream toBeTimeStamped, String filename) throws IOException
com.digistamp.properties
. It is in that file you will have
put your DigiStamp user ID and password.IOException
public static void main(String[] args)
for details
public void testConfigurationAlternatives()