Lookup credentials using given query.
#include <sys/credential/credential_store.h>
int credential_find(const credential_store_t *store,
const credential_query_t *query,
credential_query_result_t **result)
BlackBerry 10.3.1
The store where you want to perform the query.
The query to execute.
On return, a pointer to query result. You must call credential_query_result_release() to release the credential structure passed as arguments to the callback. when you're done using it.
Using the input query values, search within Credential Manager and return all credentials which match the input criteria. Allocates a new credential_query_result_t structure and initializes with query status and any credentials returned for query.
0 if operation was successful, error code otherwise.