Lines Matching defs:identifier
292 Keyring::FindKey(const BString& identifier, const BString& secondaryIdentifier,
300 if (fData.GetInfo(identifier, &type, &count) != B_OK)
303 // We have a matching primary identifier, need to check for the secondary
304 // identifier.
307 if (fData.FindMessage(identifier, i, &candidate) != B_OK)
328 // The secondary identifier is optional, so we just return the
330 return fData.FindMessage(identifier, 0, _foundKeyMessage);
346 char* identifier = NULL;
347 if (fData.GetInfo(B_MESSAGE_TYPE, keyIndex, &identifier, NULL,
359 return fData.FindMessage(identifier, index, &_foundKeyMessage);
365 if (fData.FindMessage(identifier, subkeyIndex, &subkey) != B_OK)
403 Keyring::AddKey(const BString& identifier, const BString& secondaryIdentifier,
410 if (FindKey(identifier, secondaryIdentifier, false, NULL) == B_OK)
414 status_t result = fData.AddMessage(identifier, &keyMessage);
424 Keyring::RemoveKey(const BString& identifier,
432 if (fData.GetInfo(identifier, &type, &count) != B_OK)
437 if (fData.FindMessage(identifier, i, &candidate) != B_OK)
444 status_t result = fData.RemoveData(identifier, i);