credential_query_set_cred_type()

Set the credential type that should be used when performing query.

Synopsis:

#include <sys/credential/credential_store.h>
 
int credential_query_set_cred_type(credential_query_t *query,
                                   credential_type_t type)

Since:

BlackBerry 10.3.1

Arguments:

query

The query to update.

type

The credential type to set.

Library:

libcredential (For the qcc command, use the -l bps option to link against this library)

Description:

Specify the credential type that the input query should be restricted to when it is executed.

By default, the query will use CREDENTIAL_TYPE_ANY. This implies that query result may include credential of any type.

Returns:

0 if operation was successful, error code otherwise.