|
IAIK PKCS#11 Wrapper version 1.2.17 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for notification callbacks. Object implementing this interface can be passed to the openSession method of a token.
Field Summary | |
static long |
CANCEL
This is the code to return in a PKCS11Exception to signal surrender to the library. |
Method Summary | |
void |
notify(Session session,
boolean surrender,
Object application)
The module calls this method in certain events. |
Field Detail |
public static final long CANCEL
Method Detail |
public 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 generatd, 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.
|
IAIK PKCS#11 Wrapper version 1.2.17 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |