|
IAIK PKCS#11 Wrapper version 1.2.17 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiaik.pkcs.pkcs11.DefaultInitializeArgs
This class is a simeple implementation of InitializeArgs.
Field Summary | |
protected boolean |
libraryCantCreateOsThreads_
Indicates that application threads which are executing calls to the library may not use native operating system calls to spawn new threads. |
protected MutexHandler |
mutexHandler_
The mutex-handler of this object. |
protected boolean |
osLockingOk_
Indicates that the libary may use mechanisms of the operating-system to do thread-locking. |
protected Object |
reserved_
The reserved parameter in the initialization arguments. |
Constructor Summary | |
DefaultInitializeArgs()
Default constructor. |
|
DefaultInitializeArgs(MutexHandler mutexHandler,
boolean libraryCantCreateOsThreads,
boolean osLockingOk)
Constructor, taking a mutex-handler, the libraryCantCreateOsThreads flag and the osLockingOk flag. |
Method Summary | |
MutexHandler |
getMutexHandler()
This method returns the object that implements the functionality for handling mutexes. |
Object |
getReserved()
Reserved parameter. |
boolean |
isLibraryCantCreateOsThreads()
Check, if application threads which are executing calls to the library may not use native operating system calls to spawn new threads. |
boolean |
isOsLockingOk()
Check, if the library can use the native operation system threading model for locking. |
void |
setLibraryCantCreateOsThreads(boolean libraryCantCreateOsThreads)
Set, if application threads which are executing calls to the library may not use native operating system calls to spawn new threads. |
void |
setMutexHandler(MutexHandler mutexHandler)
This method sets the object that implements the functionality for handling mutexes. |
void |
setOsLockingOk(boolean osLockingOk)
set, if the library can use the native operation system threading model for locking. |
void |
setReserved(Object reserved)
Set the reserved parameter. |
String |
toString()
Returns the string representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected MutexHandler mutexHandler_
protected boolean libraryCantCreateOsThreads_
protected boolean osLockingOk_
protected Object reserved_
Constructor Detail |
public DefaultInitializeArgs()
public DefaultInitializeArgs(MutexHandler mutexHandler, boolean libraryCantCreateOsThreads, boolean osLockingOk)
mutexHandler
- The PKCS#11 module should use this mutex-handler.libraryCantCreateOsThreads
- Indicates that application threads which
are executing calls to the library may
not use native operating system calls to
spawn new threads .osLockingOk
- Indicates that the libary may use mechanisms of the
operating-system to do thread-locking.Method Detail |
public MutexHandler getMutexHandler()
getMutexHandler
in interface InitializeArgs
public boolean isLibraryCantCreateOsThreads()
isLibraryCantCreateOsThreads
in interface InitializeArgs
public boolean isOsLockingOk()
isOsLockingOk
in interface InitializeArgs
public Object getReserved()
getReserved
in interface InitializeArgs
public void setMutexHandler(MutexHandler mutexHandler)
mutexHandler
- The handler object for mutex functionality, or null
to use no handler.public void setLibraryCantCreateOsThreads(boolean libraryCantCreateOsThreads)
libraryCantCreateOsThreads
- True, if application threads which are
executing calls to the library may not
use native operating system calls to
spawn new threads. False, if they may.public void setOsLockingOk(boolean osLockingOk)
osLockingOk
- True, if the library can use the native operation system
threading model for locking. Fasle, otherwise.public void setReserved(Object reserved)
reserved
- Should be null in this version.public String toString()
|
IAIK PKCS#11 Wrapper version 1.2.17 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |