public interface MutexHandler
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createMutex()
Create a new mutex object.
|
void |
destroyMutex(java.lang.Object mutex)
Destroy a mutex object.
|
void |
lockMutex(java.lang.Object mutex)
If this method is called on with a mutex object which is not locked, the calling thread obtains
a lock on that mutex object and returns.
|
void |
unlockMutex(java.lang.Object mutex)
If this method is called with a mutex object which is locked by the calling thread, that mutex
object is unlocked and the function call returns.
|
java.lang.Object createMutex() throws PKCS11Exception
PKCS11Exception
- If the wrapper should return a differnet value than CKR_OK to the library. It gets
the error-code and returns it as CK_RV.void destroyMutex(java.lang.Object mutex) throws PKCS11Exception
mutex
- The mutex object to destroy.PKCS11Exception
- If the wrapper should return a differnet value than CKR_OK to the library. It gets
the error-code and returns it as CK_RV.void lockMutex(java.lang.Object mutex) throws PKCS11Exception
mutex
- The mutex object to lock.PKCS11Exception
- If the wrapper should return a differnet value than CKR_OK to the library. It gets
the error-code and returns it as CK_RV.void unlockMutex(java.lang.Object mutex) throws PKCS11Exception
mutex
- The mutex object to unlock.PKCS11Exception
- If the wrapper should return a differnet value than CKR_OK to the library. It gets
the error-code and returns it as CK_RV.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