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,
java.lang.Object application)
The module calls this method in certain events.
|
static final long CANCEL
void notify(Session session, boolean surrender, java.lang.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 JavaSecurity Website http://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. version 1.6.9