public class DefaultMutexHandler extends Object implements MutexHandler
| Constructor and Description |
|---|
DefaultMutexHandler() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public Object createMutex() throws sun.security.pkcs11.wrapper.PKCS11Exception
createMutex in interface MutexHandlersun.security.pkcs11.wrapper.PKCS11Exception - If the wrapper should return a different value than CKR_OK
to the library. It gets the error-code and returns it as
CK_RV.public void destroyMutex(Object mutex) throws sun.security.pkcs11.wrapper.PKCS11Exception
destroyMutex in interface MutexHandlermutex - The mutex object to destroy.sun.security.pkcs11.wrapper.PKCS11Exception - If the wrapper should return a different value than CKR_OK
to the library. It gets the error-code and returns it as
CK_RV.public void lockMutex(Object mutex) throws sun.security.pkcs11.wrapper.PKCS11Exception
lockMutex in interface MutexHandlermutex - The mutex object to lock.sun.security.pkcs11.wrapper.PKCS11Exception - If the wrapper should return a different value than CKR_OK
to the library. It gets the error-code and returns it as
CK_RV.public void unlockMutex(Object mutex) throws sun.security.pkcs11.wrapper.PKCS11Exception
unlockMutex in interface MutexHandlermutex - The mutex object to unlock.sun.security.pkcs11.wrapper.PKCS11Exception - If the wrapper should return a different value than CKR_OK
to the library. It gets the error-code and returns it as
CK_RV.Copyright © 2022. All rights reserved.