demo
Class DemoPkcs11All
java.lang.Object
demo.DemoPkcs11All
- All Implemented Interfaces:
- CMSKeyStoreConstants
public class DemoPkcs11All
- extends java.lang.Object
- implements CMSKeyStoreConstants
This class runs all CMS/SMIME PKCS#11 demos.
For running this demo the following packages are required:
iaik_cms.jar
, iaik_cms_demo.jar
, iaik_jce(full).jar
,
iaikPkcs11Wrapper.jar
and iaikPkcs11Provider.jar
(and
iaik_eccelerate.jar
, mail.jar
, activation.jar
) have
to be put into the classpath, the shared library (pkcs11wrapper.dll
or
libpkcs11wrapper.so
) has to be in your system library search path or in your VM
library path, e.g. (on Windows, assuming that all jar files are located in a lib sub-directory
and the dll is in a lib/win64 sub-directory):
java -Djava.library.path=lib/win64
-cp lib/iaik_jce.jar;lib/iaikPkcs11Wrapper.jar;lib/iaikPkcs11Provider.jar;lib/iaik_cms.jar;lib/iaik_cms_demo.jar;lib/mail.jar;lib/activation.jar
demo.DemoPkcs11All <pkcs11Module>.dll
Fields inherited from interface demo.keystore.CMSKeyStoreConstants |
CA_DSA, CA_RSA, CA_RSAPSS, DSA_1024, DSA_2048, DSA_3072, ESDH_2048_1, ESDH_2048_2, KS_DIRECTORY, KS_FILENAME, KS_PASSWORD, RSA_2048_CRYPT_1, RSA_2048_CRYPT_2, RSA_2048_CRYPT_3, RSA_2048_SIGN_1, RSA_2048_SIGN_2, RSA_2048_SIGN_3, RSAPSS_2048_SHA1_SIGN, RSAPSS_2048_SHA256_SIGN, RSAPSS_2048_SHA384_SIGN, RSAPSS_2048_SHA512_SIGN, SSDH_2048_1, SSDH_2048_2, TSP_SERVER |
Method Summary |
static void |
main(java.lang.String[] args)
Performs all tests. |
void |
start(java.lang.String moduleName,
char[] userPin)
Start all tests. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DemoPkcs11All
public DemoPkcs11All()
start
public void start(java.lang.String moduleName,
char[] userPin)
throws java.lang.Exception
- Start all tests.
- Parameters:
moduleName
- the name of the PKCS#11 module to be useduserPin
- the user-pin (password) for the TokenKeyStore
(may be null
to pou-up a dialog asking for the pin)
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Performs all tests.
- Parameters:
args
- the PKCS#11 module name
- Throws:
java.io.IOException
|
v6.1
(c) 2002
IAIK, (c) 2003 - 2025
SIC
|
|