Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IKeystore2::updateKeyMetaDataByUUID ( P6UUID pUUID,
p6ICryptoKey pKey 
)
pure virtual

Allows the modification of the meta data associated with an existing key.

Note that neither the key's length or class can be changed by this function. The caller should use the replaceKey() method for modifying a key's length or class (e.g., SYMMETRIC).

TO leave the state meta-data of the key unchanged assign it to 'CKS_MAX' in the pKey parameter. To leave the cipher meta-data of the key unchanged assign it to 'CIPHER_MAX' in the pkey parameter.

Parameters
pUUID[ in ] There can only be one item associated with the globally unique identifer.
pKey[ in ] Key meta data will be extracted by using the p6ICryptoKeyGetMeta interface of the crypto key
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgIf pKey is NULL.
P6R::eNotInitializedA successful call to initialize was not made before this call.
P6R::eInvalidStateA successful call to open() was not made before this call.