|
IAIK PKCS#11 Wrapper version 1.2.16 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objects that implement this interface can be used in the InitializeArgs to handle mutex functionality.
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. |
Method Detail |
public 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.public void destroyMutex(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.public void lockMutex(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.public void unlockMutex(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 PKCS#11 Wrapper version 1.2.16 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |