def db_store_yubikey(self, public_id, key_handle, aead, nonce = None):
if nonce is not None and not self.version.have_YSM_DB_YUBIKEY_AEAD_STORE2():<EOL><INDENT>raise pyhsm.exception.YHSM_Error("<STR_LIT>")<EOL><DEDENT>return pyhsm.db_cmd.YHSM_Cmd_DB_YubiKey_Store(self.stick, public_id, key_handle, aead, nonce = nonce).execute()<EOL>
Ask YubiHSM to store data about a YubiKey in the internal database (not buffer).

The input is an AEAD with the secrets of a YubiKey, perhaps previously created
using L{load_secret}.

@param public_id: The six bytes public id of the YubiKey
@param key_handle: Key handle that can decrypt the YubiKey AEAD
@param aead: AEAD of an L{pyhsm.aead_cmd.YHSM_YubiKeySecret}
@param nonce: Nonce, if different from public_id.
@type public_id: string
@type key_handle: integer or string
@type aead: L{YHSM_GeneratedAEAD} or string
@type nonce: None or string

@return: True on success
@rtype: bool

@see: L{pyhsm.db_cmd.YHSM_Cmd_DB_YubiKey_Store}