public class DefaultInitializeArgs extends java.lang.Object implements InitializeArgs
Modifier and Type | Field and Description |
---|---|
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 java.lang.Object |
reserved_
The reserved parameter in the initialization arguments.
|
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()
This method returns the object that implements the functionality for handling mutexes.
|
java.lang.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(java.lang.Object reserved)
Set the reserved parameter.
|
java.lang.String |
toString()
Returns the string representation of this object.
|
protected MutexHandler mutexHandler_
protected boolean libraryCantCreateOsThreads_
protected boolean osLockingOk_
protected java.lang.Object reserved_
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.public MutexHandler getMutexHandler()
getMutexHandler
in interface InitializeArgs
public boolean isLibraryCantCreateOsThreads()
isLibraryCantCreateOsThreads
in interface InitializeArgs
public boolean isOsLockingOk()
isOsLockingOk
in interface InitializeArgs
public java.lang.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(java.lang.Object reserved)
reserved
- Should be null in this version.public java.lang.String toString()
toString
in class java.lang.Object
IAIK JavaSecurity Website http://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. version 1.6.9