public class CryptokiObjects
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
CryptokiObject |
create(java.util.List<CryptokiAttribute> attList)
Creates a new object
If a call to CreateObject cannot support the precise template supplied to it, it will fail
and return without creating any object.
|
int |
destroy(CryptokiObject obj)
Destroys an object
Only session objects can be destroyed during a read-only session.
|
CryptokiObject |
find(java.util.List<CryptokiAttribute> attList)
Finds the first objects matching criteria
Calls C_FindObjectsInit, C_FindObjects, C_FindObjectsFinal of the underlying native PKCS#11
The object search operation will only find objects that the session can view. |
java.util.List<CryptokiObject> |
find(java.util.List<CryptokiAttribute> attList,
int nMaxCount)
Finds objects
Call C_FindObjectsInit, C_FindObjects, C_FindObjectsFinal of the underlying native PKCS#11
The object search operation will only find objects that the session can view. |
public java.util.List<CryptokiObject> find(java.util.List<CryptokiAttribute> attList, int nMaxCount)
attList
- List of attributes of the requested objectsnMaxCount
- Max number of object to returnCryptokiException
- If a PKCS#11 error occurspublic CryptokiObject find(java.util.List<CryptokiAttribute> attList)
attList
- List of attributes of the requested objectsCryptokiException
- If a PKCS#11 error occurspublic CryptokiObject create(java.util.List<CryptokiAttribute> attList)
attList
- List of attributes of the object to createCryptokiException
- If a PKCS#11 error occurspublic int destroy(CryptokiObject obj)
obj
- Object to destroyCryptokiException