|
IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdemo.cms.pkcs11.PKCS11Demo
public abstract class PKCS11Demo
Base class for PKCS#11 Demos.
| Field Summary | |
|---|---|
protected iaik.pkcs.pkcs11.provider.IAIKPkcs11 |
iaikPkcs11Provider_
The PKCS#11 JCE provider. |
protected iaik.security.provider.IAIK |
iaikSoftwareProvider_
The IAIK JCE software provider. |
protected java.lang.String |
moduleName_
Module name (native PKCS#11 module of the cryptographic hardware. |
protected java.security.KeyStore |
tokenKeyStore_
The key store that represents the token (smart card) contents. |
protected char[] |
userPin_
The user pin for the token key store. |
| Constructor Summary | |
|---|---|
protected |
PKCS11Demo()
Creates a PKCS11Demo object that has to be explicitly initialized with a module name. |
|
PKCS11Demo(java.lang.String moduleName,
char[] userPin)
Creates a PKCS11Demo object for the given module name. |
| Method Summary | |
|---|---|
void |
getKeyStore()
This method gets the key store of the PKCS#11 provider and stores a reference at pkcs11ClientKeystore_. |
void |
init(java.lang.String moduleName,
char[] userPin)
Inits this PKCS11Demo object for the given module name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String moduleName_
protected char[] userPin_
protected iaik.pkcs.pkcs11.provider.IAIKPkcs11 iaikPkcs11Provider_
protected iaik.security.provider.IAIK iaikSoftwareProvider_
protected java.security.KeyStore tokenKeyStore_
| Constructor Detail |
|---|
protected PKCS11Demo()
initialized with a module name.
public PKCS11Demo(java.lang.String moduleName,
char[] userPin)
moduleName - the name of the moduleuserPin - the user-pin (password) for the TokenKeyStore
(may be null to pop-up a dialog asking for the pin)| Method Detail |
|---|
public void init(java.lang.String moduleName,
char[] userPin)
moduleName - the name of the moduleuserPin - the user-pin (password) for the TokenKeyStore
(may be null to pou-up a dialog asking for the pin)
public void getKeyStore()
throws java.security.GeneralSecurityException,
java.io.IOException
pkcs11ClientKeystore_.
java.security.GeneralSecurityException - If anything with the provider fails.
java.io.IOException - If loading the key store fails.
|
IAIK CMS/SMIME Toolkit Demo API Documentation
Version 6.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
|
v6.1 (c) 2002 IAIK, (c) 2003 - 2025 SIC |
|