public interface Notify
| Modifier and Type | Field and Description |
|---|---|
static long |
CANCEL
This is the code to return in a PKCS11Exception to signal surrender
to the library.
|
| Modifier and Type | Method and Description |
|---|---|
void |
notify(Session session,
boolean surrender,
Object application)
The module calls this method in certain events.
|
static final long CANCEL
void notify(Session session, boolean surrender, Object application) throws PKCS11Exception
throw new PKCS11Exception(PKCS11Constants.CKR_CANCEL);
session - The session performing the callback.surrender - See CK_NOTIFICATION in PKCS#11. A return value of CKR_OK is
generated, if this method call returns regularly.
CKR_CANCEL can be returned to the module by throwing a
PKCS11Exception with the error-code CKR_CANCEL.application - The application-object passed to openSession.PKCS11Exception - If the method fails for some reason, or as PKCS11Exception
with error-code CKR_CANCEL to signal the module to cancel
the ongoing operation.Copyright © 2022. All rights reserved.