public class DefaultInitializeArgs extends Object implements InitializeArgs
| Constructor and Description |
|---|
DefaultInitializeArgs()
Default constructor.
|
DefaultInitializeArgs(MutexHandler mutexHandler,
boolean libraryCantCreateOsThreads,
boolean osLockingOk)
Constructor, taking a mutex-handler, the libraryCantCreateOsThreads flag
and the osLockingOk flag.
|
| Modifier and Type | Method and Description |
|---|---|
MutexHandler |
getMutexHandler()
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.
|
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 library may use mechanisms of the
operating-system to do thread-locking.public MutexHandler getMutexHandler()
getMutexHandler in interface InitializeArgspublic boolean isLibraryCantCreateOsThreads()
isLibraryCantCreateOsThreads in interface InitializeArgspublic boolean isOsLockingOk()
isOsLockingOk in interface InitializeArgspublic Object getReserved()
getReserved in interface InitializeArgspublic 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. False, otherwise.public void setReserved(Object reserved)
reserved - Should be null in this version.Copyright © 2018. All rights reserved.