Creates a new object
Namespace:
Cryptware.NCryptokiAssembly: NCryptoki (in NCryptoki.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function Create ( _ attList As CryptokiCollection _ ) As CryptokiObject |
C# |
---|
public CryptokiObject Create( CryptokiCollection attList ) |
Visual C++ |
---|
public: virtual CryptokiObject^ Create( CryptokiCollection^ attList ) sealed |
JavaScript |
---|
function create(attList); |
Parameters
- attList
- Type: Cryptware.NCryptoki..::..CryptokiCollection
List of attributes of the object to create
Return Value
The object just createdImplements
ICryptokiObjects..::..Create(CryptokiCollection)
Remarks
If a call to CreateObject cannot support the precise template supplied to it, it will fail
and return without creating any object.
If CreateObject is used to create a key object, the key object will have its
CKA_LOCAL attribute set to CK_FALSE. If that key object is a secret or private key
then the new key will have the CKA_ALWAYS_SENSITIVE attribute set to
CK_FALSE, and the CKA_NEVER_EXTRACTABLE attribute set to CK_FALSE.
Only session objects can be created during a read-only session. Only public objects can
be created unless the normal user is logged in.
Exceptions
Exception | Condition |
---|---|
Cryptware.NCryptoki..::..CryptokiException | If a PKCS#11 error occurs |