Transaction counting sample

The sample in the transactionCounting folder uses counters to capture the certificate use .

Compiling the PKCS #7 samples

The transaction counting sample depends on the PKCS #7 samples being already compiled, as explained in Compiling the PKCS #7 samples.

Compiling TransactionCounting.java

Run the following command line in the etjava/examples directory.

javac -sourcepath source -d classes -classpath classes;../lib/enttoolkit.jar source/com/entrust/toolkit/examples/transactionCounting/TransactionCounting.java

Running TransactionCounting

Run the following command line in the etjava/examples directory.

java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.transactionCounting.TransactionCounting

For example:

C:\etjava\examples>java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.cardms.SampleCardMS myEASM.domain.com 829 51721520 HY8Z-SLBY-GO74 tokenVendorLibrary.dll 11 Passw0rd -create
 
Initializing the Toolkit... DONE
Executing General Message transmission and generating injected key information... DONE
Executing Initialization transmission and retrieving digital identity representation... DONE
Writing the digital identity to the smart card... DONE
Executing Confirmation transmission... DONE