Finds objects

Namespace:  Cryptware.NCryptoki
Assembly:  NCryptoki (in NCryptoki.dll)

Syntax

Visual Basic (Declaration)
Public Function Find ( _
	attList As CryptokiCollection, _
	nMaxCount As Integer _
) As CryptokiCollection
C#
public CryptokiCollection Find(
	CryptokiCollection attList,
	int nMaxCount
)
Visual C++
public:
virtual CryptokiCollection^ Find(
	CryptokiCollection^ attList, 
	int nMaxCount
) sealed
JavaScript
function find(attList, nMaxCount);

Parameters

attList
Type: Cryptware.NCryptoki..::..CryptokiCollection
List of attributes of the requested objects
nMaxCount
Type: System..::..Int32
Max number of object to return

Return Value

A collection of objects found

Implements

ICryptokiObjects..::..Find(CryptokiCollection, Int32)

Remarks

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. For example, an object search in an “R/W Public Session” will not find any private objects (even if one of the attributes in the search template specifies that the search is for private objects). If a search operation is active, and objects are created or destroyed which fit the search template for the active search operation, then those objects may or may not be found by the search operation. Note that this means that, under these circumstances, the search operation may return invalid object handles.

Exceptions

ExceptionCondition
Cryptware.NCryptoki..::..CryptokiExceptionIf a PKCS#11 error occurs

See Also