Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IKeystore::setKey ( const P6WCHAR pNamespace,
const P6WCHAR pName,
p6ICryptoKey pKey,
p6ICert **  pCertChain,
P6UINT32  numChain,
P6UUID pUUID 
)
pure virtual

Creates a new key in the keystore with the matching 'pNamespace pName' identifier.

Parameters
pNamespace[IN] An identifier to separate the namespace of pName between applications
pName[IN] An application defined, unique identifier for a key
pKey[IN] The key value to be stored into the keystore
pCertChain[IN] Pointer to an array of certificates that represent the pKey's certificate chain. If this parameter is NULL, then no chain is saved.
numChain[IN] The number of entires in the pCertChain array. If this parameter is zero, then no chain is saved.
pUUID[OUT] Optional, can be NULL. Return the P6UUID associated with the key in the keystore.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgOne of the parameters 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.
P6R::eTooBigpNamespace is larger than P6KSMAXNAMESPACE or pName is larger than P6KSMAXNAME.
P6R::eTooSmallpNamespace or pName have length of zero.
P6R::eExistsThe key already exists in the keystore.