|
IAIK PKCS#11 Wrapper version 1.2.16 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectiaik.pkcs.pkcs11.DefaultMutexHandler
This class offers a default-implementation of a MutexHandler.
| Constructor Summary | |
DefaultMutexHandler()
|
|
| Method Summary | |
Object |
createMutex()
Create a new mutex object. |
void |
destroyMutex(Object mutex)
Destroy a mutex object. |
void |
lockMutex(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(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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultMutexHandler()
| Method Detail |
public 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(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(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(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 PKCS#11 Wrapper version 1.2.16 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||