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.javaRunning TransactionCounting
Run the following command line in the etjava/examples directory.
java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.transactionCounting.TransactionCountingFor 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 -createInitializing the Toolkit... DONEExecuting General Message transmission and generating injected key information... DONEExecuting Initialization transmission and retrieving digital identity representation... DONEWriting the digital identity to the smart card... DONEExecuting Confirmation transmission... DONE