public class DefaultMutexHandler extends java.lang.Object implements MutexHandler
| Constructor and Description |
|---|
DefaultMutexHandler() |
| 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.
|
public java.lang.Object createMutex()
throws PKCS11Exception
createMutex in interface MutexHandlerPKCS11Exception - 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.public void destroyMutex(java.lang.Object mutex)
throws PKCS11Exception
destroyMutex in interface MutexHandlermutex - 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.public void lockMutex(java.lang.Object mutex)
throws PKCS11Exception
lockMutex in interface MutexHandlermutex - 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.public void unlockMutex(java.lang.Object mutex)
throws PKCS11Exception
unlockMutex in interface MutexHandlermutex - 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