nfc_se_is_aid_registered()

Check if the application ID (AID) is registered with the secure element associated with the session provided.

Synopsis:

#include <nfc/nfc_se_access.h>
 
NFC_API nfc_result_t nfc_se_is_aid_registered(uint32_t hSESession, const uint8_t *aid, size_t aid_len, bool *is_registered)

Since:

BlackBerry 10.3.0

Arguments:

hSESession

The handle to the open session.

aid

Pointer to the buffer containing the AID.

aid_len

Length of the AID.

is_registered

A pointer to a boolean value that is set when the function returns NFC_RESULT_SUCCESS. This value is set to true if the calling application has already registered the AID, false otherwise.

Library:

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

Description:

An application uses this function to check if it has already registered the specified AID.

Feature set 1 doesn't support this function. When called in feature set 1, the function returns NFC_RESULT_UNSUPPORTED_API.

Returns:

NFC_RESULT_SUCCESS, or one of the following: