public class SecureNfcManager extends EMDKBase
{@code
Example Usage:
public class MainActivity extends Activity implements EMDKListener {
SecureNfcManager secureNfcManager;
EMDKManager emdkManager;
SamType samType;
MifareSam mifareSam ;| Modifier and Type | Class and Description |
|---|---|
static class |
SecureNfcManager.SamType
Supported SAM types.
|
static class |
SecureNfcManager.TagTechType
NFC tag types.
|
| Modifier and Type | Method and Description |
|---|---|
SecureNfcManager.SamType |
getAvailableSam()
Gets the available SAM on the device.
|
PassThruApduProcessor |
getPassThruApduInstance()
Returns the PassThruApduProcessor object to securely communicate with
contactless smart cards at the Application Protocol Data Unit (APDU)
level using the SAM.
|
SamBase |
getSamInstance(SecureNfcManager.SamType samType)
This method returns the object to authenticate between SAM with the Host.
|
TagTechBase |
getTagTechInstance(SecureNfcManager.TagTechType tagType)
Returns the tag technology object based for the Tag type passed.
|
SecureNfcManager.TagTechType |
getTagTechType(Tag tag)
This method returns the tag type discovered by the device.
|
public SecureNfcManager.SamType getAvailableSam() throws SecureNfcException
SecureNfcException - The exception will be thrown if the emdk is not opened.public SamBase getSamInstance(SecureNfcManager.SamType samType)
SamType - - SAM TYPEpublic SecureNfcManager.TagTechType getTagTechType(Tag tag) throws SecureNfcException
tag - - Contactless tag already detected by device. We get this
through the EXTRA_TAG information from the intent.SecureNfcException - The exception will be thrown if the emdk is not opened.public TagTechBase getTagTechInstance(SecureNfcManager.TagTechType tagType)
TagTechType - public PassThruApduProcessor getPassThruApduInstance()