|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface CardEmulationRegistry
The card emulation registry is used to register a card emulation.
| Method Summary | |
|---|---|
boolean |
checkConnectionProperty(ConnectionProperty property)
Checks if the NFC Controller supports a connection property for the card emulation function. |
CardEmulation |
createCardEmulation(ConnectionProperty cardType,
byte[] identifier)
Creates a new instance of a card emulation. |
CardEmulation |
createCardEmulation(ConnectionProperty cardType,
int randomIdentifierLength)
Creates a new instance of a card emulation. |
| Method Detail |
|---|
CardEmulation createCardEmulation(ConnectionProperty cardType,
byte[] identifier)
CardEmulation.start() is called.
cardType - the type of the card to be created:
ConnectionProperty.ISO_14443_4_A for a card of type ISO 14443-4 A, orConnectionProperty.ISO_14443_4_B for a card of type ISO 14443-4 B.identifier - the card identifier. For a tag of type A, the length of the identifier may be 4, 7 or 10 bytes.
For a tag of type B, the length of the identifier shall be 4.
SecurityException - if the calling application is not allowed to perform card emulation.
IllegalArgumentException - if cardType or identifier is null.
IllegalArgumentException - if cardType is unknown
or the identifier length is not compliant with the card type.
CardEmulation createCardEmulation(ConnectionProperty cardType,
int randomIdentifierLength)
CardEmulation.start() is called.
cardType - the type of the card to be created:
ConnectionProperty.ISO_14443_4_A for a card of type ISO 14443-4 A, orConnectionProperty.ISO_14443_4_B for a card of type ISO 14443-4 B.randomIdentifierLength - the length in byte of the card identifier randomly generated for each reader selection.
For a tag of type A, the length of the identifier may be 4, 7 or 10 bytes.
For a tag of type B, the length of the identifier shall be 4.
SecurityException - if the calling application is not allowed to perform card emulation.
IllegalArgumentException - if cardType is null.
IllegalArgumentException - if cardType is unknown or
randomIdentifierLength is not compliant with the card type.boolean checkConnectionProperty(ConnectionProperty property)
property - the connection property to check.
IllegalArgumentException - if property in null.
|
Copyright © 2010-2011 Inside Secure |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||